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.
Last updated