# Trade

This guide explains how to use the Trade page of W Swap. The interface is a familiar Uniswap V2-style experience adapted for W Chain (native token `WCO`) with the same core flow: connect a wallet, select tokens, approve if required, set slippage, and confirm the trade.

### Overview

* Network: W Chain (EVM-compatible; native gas token `WCO`)
* Purpose: Trade between supported ERC‑20 tokens on W Chain
* Model: a constant-product AMM (x·y = k)
* Key actions: Token selection, allowance approval, slippage and deadline configuration, transaction confirmation

### Prerequisites

* A supported EVM wallet such as `Rabby` (recommended) or `MetaMask` installed in your browser.
* Some `WCO` to pay gas fees on W Chain.
* Bridged or existing assets on W Chain. If your assets are on Ethereum or BNB Chain, you can use the Bridge page to bring them to W Chain first.

### Connect Your Wallet

1. Open W Swap and click `Connect Wallet`.
2. Select your wallet—`Rabby` (recommended) offers enhanced transaction safety; `MetaMask` is also supported.
3. Switch to `W Chain` in your wallet when prompted. If W Chain is not added, the app can suggest adding it automatically.

### Select Tokens and Amounts

1. On the Trade page, use the token selectors for `From` and `To`.
2. Choose a token from the list or paste a contract address for custom tokens.
3. Enter the `From` amount; the interface quotes the estimated output and route.
4. Review:
   * `Price Impact`: Expected slippage due to trade size vs. pool depth.
   * `Minimum Received`: Accounted for slippage tolerance.
   * `Route`: The path across pools the trade will take.

Notes on Wrapped Native Token:

* Some interfaces label the wrapped native token as `WETH` historically. On W Chain, the native token is `WCO`, and its wrapped form may be shown as `Wrapped WCO (WWCO)`. Treat any “WWCO or WETH” entry as the wrapped version of WCO used in pools.

### Allowance Approval (If Required)

Many ERC‑20 tokens require an on-chain approval before they can be spent by the router.

1. If you see an `Approve` button, click it to submit an approval transaction.
2. Wait for confirmation in your wallet and the explorer.
3. Once approved, the `Swap` button becomes available.

### Settings: Slippage and Deadline

* Slippage Tolerance: Adjust in the settings panel to control acceptable price movement. A typical range is `0.1%–1%` for liquid pools; higher for illiquid assets.
* Transaction Deadline: Prevents stuck trades; the swap reverts if not included before the deadline.
* Expert Mode: If available, use with caution; it disables some safety checks.

### Execute the Trade

1. Click `Trade` (the button may be labeled `Swap` in the UI).
2. Review the summary in the confirmation modal.
3. Confirm in your wallet and wait for the transaction to be mined.
4. Track the transaction via the link to `scan.w-chain.com` provided by the DApp.

### Troubleshooting

* `Insufficient Liquidity`: Try smaller amounts or a different route.
* `Approval Failed`: Reopen your wallet, confirm permissions, and retry.
* `High Price Impact Warning`: Reduce trade size or split into smaller trades.
* `Transaction Reverted`: Increase slippage tolerance slightly or check token allowances.
* `Stuck/Pending`: Consider increasing gas settings in your wallet and resubmitting.

### Safety Tips

* Only paste token addresses from trusted sources.
* Double-check the `Minimum Received` value matches expectations.
* Keep some `WCO` for gas; trades will fail if your gas balance is 0.

### FAQs

* Can I trade from Ethereum or BNB Chain directly? No, first bridge supported assets to W Chain using the `Bridge` page, then trade on W Chain.
* Why do I see `Approve` before `Trade`? ERC‑20 tokens require a one-time allowance for the router to spend your tokens.
* Where do I view my transaction? Use the explorer link (e.g., `https://scan.w-chain.com/tx/<hash>`).


---

# 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://docs.w-chain.com/w-swap/trade.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.
