> For the complete documentation index, see [llms.txt](https://docs.pancakeswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pancakeswap.finance/vietnamese/giao-dich/crosschain-swaps/swap-scenarios.md).

# Các kịch bản hoán đổi

Có 4 kịch bản cho các giao dịch xuyên chuỗi.

#### 1️⃣ Chỉ Kết Nối Cầu Nối

* Ví dụ: **Kết nối cầu nối ETH trên Base sang ETH trên Arbitrum**
* Chỉ các token được hỗ trợ (USDC, USDT, WETH, v.v.) mới có thể kết nối cầu nối trực tiếp. Các token này khác nhau tùy theo chuỗi nguồn và chuỗi đích.

#### 2️⃣ Hoán Đổi → Kết Nối Cầu Nối

* Ví dụ: **Hoán đổi BNB trên BNB Chain sang USDC trên Arbitrum**
* Hoán đổi BNB sang token cầu nối được hỗ trợ (ví dụ: USDC) sử dụng các pool PancakeSwap trên BNB Chain
* Kết nối cầu nối USDC qua Across sang Arbitrum

#### 3️⃣ Kết Nối Cầu Nối → Hoán Đổi

* Ví dụ: **Hoán đổi USDC trên BNB Chain sang ARB trên Arbitrum**
* Kết nối cầu nối USDC qua Across
* Hoán đổi USDC sang ARB sử dụng các pool PancakeSwap trên Arbitrum

#### 4️⃣ Hoán Đổi → Kết Nối Cầu Nối → Hoán Đổi

* Ví dụ: **Hoán đổi BNB trên BNB Chain sang ARB trên Arbitrum**
* Hoán đổi BNB sang token cầu nối (tối đa hóa đầu ra cho người dùng)
* Kết nối cầu nối qua Across
* Hoán đổi token đã kết nối sang ARB trên Arbitrum sử dụng các pool PancakeSwap

***

### ⚠️ Các Trường Hợp Thất Bại

| Kịch Bản                                         | Kết Quả                                                                                                                                                                                                  |
| ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Thất Bại Hoán Đổi/Giao Dịch trên Chuỗi Nguồn** | Người dùng nhận lại ngay lập tức token gốc trên chuỗi nguồn                                                                                                                                              |
| **Thất Bại Giao Dịch Cầu Nối**                   | Across xử lý hoàn tiền trong vòng 90 phút đến 2 giờ, người dùng nhận lại tài sản đã kết nối trên chuỗi nguồn. Trong khi đó Relay xử lý hoàn tiền trong vòng một phút trong kịch bản này giữa SOL <> EVM. |
| **Thất Bại Hoán Đổi trên Chuỗi Đích**            | Người dùng nhận tài sản đã kết nối cầu nối trên chuỗi đích                                                                                                                                               |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pancakeswap.finance/vietnamese/giao-dich/crosschain-swaps/swap-scenarios.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
