Skip to content

Swap & Bridge

The same widget supports two route types through Relay:

  • Swap — origin and destination chain are the same.
  • Bridge — origin and destination chains differ.

Quote lifecycle

  1. Select origin chain/token and destination chain/token.
  2. Enter the exact input amount.
  3. MonTerminal requests Relay quote/v2 with the connected wallet as user, recipient, and refund address.
  4. The UI shows estimated output, minimum received, provider fee, swap impact, and estimated time.
  5. Quotes older than approximately 30 seconds are refreshed before execution.
  6. The wallet switches to the origin chain and signs each required transaction or supported signature step.
  7. MonTerminal polls Relay's status endpoint until fill, failure, or refund state is known.

Safety checks

The interface checks:

  • token balance;
  • origin-chain native gas balance;
  • stale quotes;
  • minimum received;
  • high price impact;
  • user-rejected chain switches or signatures;
  • unsupported or too-small routes.

Relay can reject dust amounts. “No route” or “Amount too small” is a real provider response, not a mocked application failure.

Real same-chain swap

On July 18, 2026, the proof wallet executed:

  • Input: 5 MON
  • Destination: Monad Mainnet
  • Received: 0.107470 USDC
  • Transaction: MonadScan

Real cross-chain bridge

On July 18, 2026, the proof wallet executed:

  • Input: 2 MON on Monad
  • Destination: Base
  • Received: 0.020909 USDC on Base
  • Source transaction: MonadScan
  • Destination fill: BaseScan

Dust bridges can be inefficient

The real 2 MON bridge had roughly 51% total impact because flat relayer/execution costs dominated the small dollar value. Always review fees and minimum received. A technically valid route is not automatically an economically good route.

Unaudited hackathon software. Use small amounts.