🔄 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

  1. Connect your wallet and make sure you have mETH or mUSDC tokens (use the Faucet if needed).
  2. Navigate to the Swap page.
  3. Select the "From" token — mETH or mUSDC — using the token dropdown.
  4. Enter the amount you want to swap. The "To" field automatically calculates the expected output based on the current rate.
  5. Review the rate — shows the current conversion ratio (e.g., 1 mETH = 1700 mUSDC).
  6. Adjust slippage (optional) — Click the settings icon to open the slippage configuration sheet. Default is 0.5%.
  7. Approve the token — If this is your first swap, you'll need to approve the DEX contract to spend your tokens.
  8. 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.

Rate & Impact

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.