Launch app
Cover: What happens when you click Swap: the life of one trade, step by step

What happens when you click Swap: the life of one trade, step by step

From the quote to the tokens landing in your wallet: the seven steps the BlazePhoenix contracts take for every swap, and the checks that protect you at each one.

BlazePhoenix Engineering · article updated 2026-09-24 · site dataset through 2026-12-02 · 5 min · written from the deployed bytecode

At a glance
LevelBeginner
Reading time5 min
Sections6
Updated2026-09-24

By Mitra (@Sigmacrit) — anonymous developer of the BlazePhoenix protocol. The code is the résumé.

Abstract in 15 languages · resumo · resumen · 摘要 · 要旨 · ملخص

English — The seven steps the BlazePhoenix contracts take for every swap, from the free preview to the tokens landing in your wallet, and the check at each step that can cancel the trade rather than fill it badly.

Português — Os sete passos que os contratos da BlazePhoenix dão em cada troca, da pré-visualização gratuita até os tokens chegarem à sua carteira, e a verificação em cada passo que pode cancelar a troca em vez de a executar mal.

Español — Los siete pasos que dan los contratos de BlazePhoenix en cada swap, desde la vista previa gratuita hasta que los tokens llegan a tu wallet, y el control en cada paso que puede cancelar la operación en lugar de ejecutarla mal.

Français — Les sept étapes que suivent les contrats BlazePhoenix pour chaque échange, de l’aperçu gratuit jusqu’à l’arrivée des tokens dans votre portefeuille, et le contrôle à chaque étape qui peut annuler l’échange plutôt que de l’exécuter mal.

Deutsch — Die sieben Schritte, die die BlazePhoenix-Verträge bei jedem Swap gehen — von der kostenlosen Vorschau bis zu den Token in Ihrer Wallet — und die Prüfung in jedem Schritt, die den Trade lieber abbricht als schlecht ausführt.

Русский — Семь шагов, которые контракты BlazePhoenix проходят в каждом обмене — от бесплатного предпросмотра до поступления токенов в кошелёк, — и проверка на каждом шаге, которая скорее отменит сделку, чем исполнит её плохо.

Türkçe — BlazePhoenix sözleşmelerinin her takasta attığı yedi adım — ücretsiz önizlemeden token’ların cüzdanınıza ulaşmasına — ve her adımda işlemi kötü gerçekleştirmek yerine iptal edebilen kontrol.

العربية — الخطوات السبع التي تتخذها عقود BlazePhoenix في كل مبادلة، من المعاينة المجانية حتى وصول الرموز إلى محفظتك، والفحص في كل خطوة الذي قد يلغي الصفقة بدل تنفيذها بشكل سيئ.

हिन्दी — हर swap में BlazePhoenix कॉन्ट्रैक्ट्स द्वारा उठाए जाने वाले सात कदम, मुफ़्त प्रीव्यू से लेकर आपके वॉलेट में टोकन पहुँचने तक, और हर कदम की जाँच जो खराब भराव के बजाय ट्रेड रद्द कर सकती है।

日本語 — BlazePhoenix のコントラクトがスワップごとに踏む七つのステップ——無料のプレビューからトークンがウォレットに届くまで——と、悪い約定の代わりに取引を取り消せる各ステップの検査。

中文 — BlazePhoenix 合约在每一次兑换中执行的七个步骤——从免费预览到代币到达你的钱包——以及每一步中宁可取消交易也不劣质成交的检查。

한국어 — BlazePhoenix 컨트랙트가 모든 스왑에서 밟는 일곱 단계 — 무료 미리보기부터 토큰이 지갑에 도착할 때까지 — 와, 나쁘게 체결하느니 거래를 취소할 수 있는 각 단계의 검사.

Bahasa Indonesia — Tujuh langkah yang diambil kontrak BlazePhoenix untuk setiap swap, dari pratinjau gratis hingga token tiba di dompet Anda, dan pemeriksaan di setiap langkah yang bisa membatalkan transaksi alih-alih mengeksekusinya dengan buruk.

বাংলা — প্রতিটি swap-এ BlazePhoenix কন্ট্র্যাক্টের সাতটি ধাপ, বিনামূল্যের প্রিভিউ থেকে আপনার ওয়ালেটে টোকেন পৌঁছানো পর্যন্ত, এবং প্রতিটি ধাপের যাচাই যা খারাপভাবে পূরণের বদলে ট্রেড বাতিল করতে পারে।

Filipino — Ang pitong hakbang ng mga kontrata ng BlazePhoenix sa bawat swap, mula sa libreng preview hanggang dumating ang token sa wallet mo, at ang tsek sa bawat hakbang na maaaring kanselahin ang trade sa halip na i-fill ito nang masama.

A swap looks like one click. Underneath, the contracts take seven steps, and each one has a check that can stop the trade if something is wrong. Here they are, in plain words.

The seven steps

Steps 1 and 2 happen before you sign; steps 3 to 7 happen inside one transaction, all at once. If any check in steps 3 to 7 fails, the whole transaction is undone as if it never happened.

  1. Preview (free): the Quoter looks at every exchange for your pair and returns the best plan and a floor — the least the contract will accept.
  2. You set your minimum and sign. No minimum, no swap: the contract refuses a zero minimum.
  3. The Router takes your tokens and measures exactly how many arrived.
  4. For each step of the route it splits the amount across the chosen pools and checks each one against its floor.
  5. Leftovers go straight back to you — nothing stays in the Router.
  6. The final amount is checked against the protocol floor and against your minimum. Too low? The whole trade is cancelled.
  7. The tokens land in your wallet, and the receipt shows the quote, the delivery and the floor side by side.

Why a cancelled trade is a good sign

If the market moved too much between your quote and your trade, the contract refuses rather than fill you badly. You keep your tokens; you only pay the network fee for trying. That refusal is the protection working.

A little deeper

The preview in step 1 is free because it is a read-only call: it asks the contracts a question without changing anything. It returns the route, the expected amount and the floor, so you know the worst case before you sign.

Steps 3 to 7 all happen inside one transaction. That matters, because a blockchain transaction is all-or-nothing: either every step succeeds, or none of them happened. There is no state in which your tokens left your wallet and the other tokens never arrived.

The measuring in steps 3 and 6 is what protects you from strange tokens. Some tokens take a small tax on every transfer; the Router measures what actually arrived instead of assuming, and prices the rest of the route on the real amount.

The leftovers in step 5 are real: if a pool did not need all of its slice, the difference comes back to you in the same transaction. The contract finishes every swap holding nothing.

Key facts

A BlazePhoenix swap takes 7 steps, and 5 of them run inside 1 transaction. A zero minimum is refused at every one of the 4 Router doors. BlazePhoenix returns leftovers to you in the same transaction. The Router holds 0 tokens after every swap.

The bottom line

BlazePhoenix checks every step of your swap, and if any check fails, the whole trade is cancelled instead of filled badly.

Do not trust this page — reproduce it

Every claim above is checkable against the chain. Start here:

open your swap on a block explorer from the receipt link: the balance changes there are the ones each step measured
Cite this article

Licensed CC BY-NC-ND 4.0: quote and cite it with attribution and a link. Commercial use and derivative versions need written permission from BlazePhoenix; translations are made by BlazePhoenix. Copy a ready-made citation:

BlazePhoenix (2026). What happens when you click Swap: the life of one trade, step by step. BlazePhoenix Engineering. https://blazephoenix.xyz/learn/what-happens-when-you-click-swap/
@misc{blazephoenix_what_happens_when_you_click_swap,
  title  = {What happens when you click Swap: the life of one trade, step by step},
  author = {BlazePhoenix},
  year   = {2026},
  url    = {https://blazephoenix.xyz/learn/what-happens-when-you-click-swap/},
  note   = {Accessed: reproduce the claim with the command above}
}

Writing an answer, a wiki entry or a paper? The claim above is reproducible against the chain before you quote it — which is the only sound basis for citing a technical source at all.

Contracts are verified on every chain we deploy to — addresses in the protocol manifest. Deeper formal treatment: the whitepaper (PDF).

Related engineering

Next in Start here · 20 / 64
What is a Uniswap V4 hook — and why BlazePhoenix never lets one touch your amounts ›Uniswap V4 pools can run extra code called hooks. A plain explanation of what hooks are, why some can be dangerous, and how BlazePhoenix screens them without ever calling them.4 min

Questions, a partnership or a bug to report? Contact us or email contact@blazephoenix.xyz

Go to APP