> For the complete documentation index, see [llms.txt](https://fastflowbot.gitbook.io/fastflowbot.whitepaper/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fastflowbot.gitbook.io/fastflowbot.whitepaper/interturning-function/fastflowbot-custom-wsol-and-sol-interconversion-function/detailed-dex-transaction-process-using-wsol.md).

# Detailed DEX Transaction Process Using WSOL

## 1. **Creating an Associated Token Account (ATA)**

When a user attempts to purchase a token and does not have WSOL in their account, the DEX’s program automatically creates an ATA linked to WSOL for the user’s main account.

## **2. Transferring SOL to ATA and Converting to WSOL**

The amount of SOL specified by the user is transferred to this newly created ATA and is automatically converted into WSOL during this process.

## **3. Using WSOL for Transactions**

Once SOL has been converted into WSOL, these WSOL are used to execute buy and sell operations.

## **4. Post-Transaction Handling**

After the transaction is completed, if the converted WSOL has been fully utilized, the ATA is also closed subsequently.
