How to use

Prerequisites: Token Approval

Before executing a swap with a token for the first time, a token approval transaction is required. This one-time authorization grants the Swap smart contract permission to access and transfer the specified token on behalf of the connected wallet.

Token approval is a separate transaction from the actual swap and requires its own gas fee. Once approved, the token can be swapped without requiring approval again unless the approval is revoked or expires. Each token contract requires its own approval — approving one token does not authorize others.


Selecting Tokens and Amounts

Navigate to the Swap page and select the token to exchange from the "From" dropdown menu. Enter the amount to swap, or click "Max" to use the entire available balance. Next, select the desired output token in the "To" field. The platform automatically calculates the estimated trading amount based on current pool liquidity, routing path, and applicable fees.

circle-info

Example

Swapping 1,000 WEMIX (valued at $1,000) in a pool with $100,000 liquidity:

  • Trading fee (0.25%): $2.50

  • Price impact (~0.5%): $5.00

  • Gas fee: ~$0.01

  • Expected trading amount: ~$992 worth of the target token


Reviewing Transaction Details

Before confirming, review the swap details displayed on screen:

  • Exchange rate: Amount of output token received per unit of input token

  • Trading fee: Trading fee distributed to liquidity providers

  • Price impact: Percentage change in price due to trade size relative to pool liquidity

  • Gas fee: Network fee paid in WEMIX to process the transaction

Adjust slippage tolerance if needed by clicking the settings icon. Slippage tolerance determines the maximum acceptable price movement between transaction submission and execution. Calculated settings (average success rate ranging from 0.5% to 1%) are suitable for most trades, but volatile markets or low-liquidity tokens may require higher tolerance.


Executing the Swap

Click "Swap" to proceed, then confirm the transaction in the connected wallet. Once the transaction is confirmed on the blockchain, the output tokens will appear in the wallet balance. Transaction status can be monitored through the wallet interface or the WEMIX3.0 blockchain explorerarrow-up-right.

Last updated