🔄 Trading on the Swap
The Swap panel lets you trade mETH for mUSDC (and vice versa) using a fixed ratio set by the DEX contract owner.
How to Execute a Swap
- Connect your wallet and make sure you have mETH or mUSDC tokens (use the Faucet if needed).
- Navigate to the Swap page.
- Select the "From" token — mETH or mUSDC — using the token dropdown.
- Enter the amount you want to swap. The "To" field automatically calculates the expected output based on the current rate.
- Review the rate — shows the current conversion ratio (e.g., 1 mETH = 1700 mUSDC).
- Adjust slippage (optional) — Click the settings icon to open the slippage configuration sheet. Default is 0.5%.
- Approve the token — If this is your first swap, you'll need to approve the DEX contract to spend your tokens.
- Click "Swap" — Confirm the transaction in MetaMask.
Understanding Slippage
Slippage tolerance protects you from price changes between submitting and confirming a transaction. The DEX uses a fixed rate, so slippage isn't caused by market movement — it's a safety measure ensuring you receive at least your minimum expected amount.
- Low (0.1%) — Tight tolerance, may cause reverts
- Moderate (0.5%) — Recommended for most trades
- High (1-2.5%) — Use if experiencing frequent reverts
Rate & Impact
- Rate — The fixed conversion ratio set by the DEX owner
- Expected Output — What you'll receive before slippage
- Minimum Received — The guaranteed minimum after slippage
- Price Impact — How much your trade affects the pool (shown in amber/yellow/red)
Note: The DEX uses a ratio-based swap model (not an AMM). The rate is fixed by the contract owner and can only be changed by them. The DEX must have sufficient liquidity in its reserves to execute your swap.