# SWAP

The process of swapping on ElonCAT SWAP, a decentralized exchange, involves the following steps:

1. <mark style="color:purple;">**Wallet Connection:**</mark>&#x20;

> <mark style="color:purple;background-color:purple;">Users must connect their compatible cryptocurrency wallet, such as Metamask or Trust Wallet, to the ElonCAT SWAP platform. This allows them to interact with the smart contracts on the blockchain.</mark>

2. <mark style="color:blue;">**Token Selection:**</mark>

> <mark style="color:blue;background-color:blue;">Users select the token they want to sell (the "from" token) and the token they want to buy (the "to" token), specifically in this case, ElonCAT. The exchange ratio is determined by the current market price of ElonCAT tokens at the time of the transaction.</mark>

3. <mark style="color:purple;">**Transaction Confirmation:**</mark>&#x20;

> <mark style="color:purple;background-color:purple;">After selecting the tokens, users confirm the transaction details, including the amount they want to swap. It's important to ensure they have sufficient balance in their wallet for both the "from" token and any additional fees associated with the transaction.</mark>

4. <mark style="color:blue;">**Smart Contract Execution:**</mark>&#x20;

> <mark style="color:blue;background-color:blue;">Once the user confirms the transaction, the smart contract is triggered. It verifies the availability of the "from" token in the user's wallet and initiates the transfer to the smart contract. The smart contract then swaps the tokens at the current exchange ratio and transfers the ElonCAT tokens to the user's wallet.</mark>

5. <mark style="color:purple;">**Completion and Settlement:**</mark>&#x20;

> <mark style="color:purple;background-color:purple;">The swap process is completed when the ElonCAT tokens are successfully transferred to the user's wallet. The transaction is recorded on the blockchain, ensuring transparency and immutability.</mark>

Decentralized exchanges like ElonCAT SWAP provide users with a secure, transparent, and efficient way to swap digital assets like ElonCAT without relying on intermediaries. By utilizing smart contracts and the decentralized nature of blockchain, users have direct control over their tokens and can participate in the decentralized finance ecosystem.


---

# Agent Instructions: 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:

```
GET https://elon-cat.gitbook.io/elon-cat/ecosystem/swap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
