Show swaps to users

What to show a user before and after a swap.

  • Before the swap, show the expected output, the fees, the price impact and the source and destination chains.
  • Warn when the price impact or the slippage setting is high.
  • After the swap, show its status as plain words, such as "Settling" then "Done". A swap is final only at SETTLED.
  • Turn the error code into a short sentence. Never show raw codes or internal names.
  • Retry failed reads with backoff before showing an error. See Track a swap.