DEV Community

Willson Lammy
Willson Lammy

Posted on

Why Can Your Cross-Chain Swap Deliver Less Than Expected?

Treat a cross-chain swap quote as an estimate, and decide what minimum output you would accept before sending a large amount. The final amount can change because prices move before the swap executes, a large trade can move the market, and network or protocol costs may come out of the proceeds.

  • A quote predicts an output; it does not always lock that price in.
  • Price movement, trade size, route and fees all affect what arrives.
  • A minimum-output limit can protect you from a poor trade, but may mean it does not complete.

Why can the final amount differ from the quote?

A quote is a snapshot of the price and costs estimated when you request it. In a cross-chain swap, the source transaction must first be confirmed, so execution may happen later, after market prices have shifted.

Trade size matters too. A small swap may fit near the current market price, while a larger one can use up the best-priced liquidity and receive a worse price for the remaining amount. This effect is called price impact; it can happen even if the market price itself stays still.

There may also be several costs: the source-chain transaction fee, liquidity or protocol fees, and the cost of sending the output on its destination chain. A route through another asset can involve multiple trading steps, each with its own price and liquidity. So compare the amount you expect to receive after costs, not just the headline exchange rate.

What happens between sending and receiving?

After you send the source asset, the swap service waits for the source blockchain to confirm the transaction. It then processes the trade and arranges a separate transaction on the destination blockchain. Those stages take time, and the market can move while the first transaction is confirming.

Some systems use an automated market maker, or AMM, where liquidity providers supply assets for trades. Chainflip uses a Just-in-Time AMM: liquidity providers can adjust offers as incoming trades become ready, and trades in a block are grouped by direction and pool. That mechanism aims to improve the execution price, but it cannot guarantee the earlier estimate. If you are comparing ways to exchange native assets across chains, Chainflip swaps are one option to consider.

For example, imagine swapping BTC for ETH through an intermediate stablecoin. The BTC-to-stablecoin trade and the stablecoin-to-ETH trade each depend on available liquidity and prices at execution. If BTC weakens against ETH while the deposit confirms, fewer ETH may arrive even if both individual trades execute as intended.

How can you set a sensible minimum?

A minimum-output setting says the least you are willing to receive for the amount sent. If execution would fall below that threshold, a system with this protection can stop the swap or return the funds, depending on its rules. Chainflip supports minimum-price and oracle-slippage protections at the trading layer; these do not include every cost, such as fees charged outside that layer.

Set the limit with the full route in mind. A very tight limit may reject a trade after a normal price move; a very loose one may allow an output you would regret. A longer route or a volatile market gives prices more chances to move before execution.

What should you check before sending?

Use this quick process to decide whether the estimate and risk suit your swap:

  1. Check the exact assets and networks. Confirm where the funds start and where you expect to receive them; similar asset names can refer to different tokens.
  2. Compare the estimated output with the market rate. Convert both assets to the same reference currency, such as dollars, to spot a large difference.
  3. Account for the whole route. Look for the expected destination amount after trading and transfer costs, not only the rate for one leg.
  4. Choose a minimum you can accept. If the service offers price protection, set a threshold that balances a fair result against the chance of a refund or delay.
  5. Start with a small amount if uncertain. This lets you learn how confirmation time and the received amount compare with the estimate before committing more.

Before sending, check that the destination address belongs to the right network and that you control it. A wrong address or network can make funds difficult or impossible to recover.

Top comments (0)