π Swapping Tokens
Swap tokens with SuperSafe's multi-provider swap system: Uniswap, Relay.link, Khalani / HyperStream, and Bebop for same-chain DEX routing, cross-chain bridging, cross-chain intents, gasless execution, and MEV protection.
Overviewβ
SuperSafe Wallet integrates four professional swap providers, each optimized for a different route type. A unified tab interface lets you switch between providers in one click, while shared controls like slippage and gas validation protect every swap.
| Provider | Best For | Key Advantage |
|---|---|---|
| π¦ Uniswap | Same-chain DEX swaps | UniswapX gas optimization + curated token lists |
| π Relay.link | Cross-chain swap + bridge | Bridge + swap in one transaction across 85+ chains |
| Khalani / HyperStream | Cross-chain intent routes | Executable intent routes with order lifecycle tracking |
| π Bebop | Gasless same-chain swaps | Permit2 gasless swaps with MEV protection |
Swap Providersβ
π¦ Uniswap (Same-Chain DEX)β
SuperSafe's featured same-chain DEX provider, powered by the Uniswap Routing API with UniswapX and Classic (v3/v4) routing.
Key Featuresβ
- UniswapX: Gas-optimized Dutch auction routing for better prices
- v4-first Routing: Automatically selects the best route (v4 preferred, v3 fallback)
- Curated Token List: Top 100 tokens pre-loaded with smart balance-first sorting
- Improved Token Search: High-performance backend search for discovering any token
- Approval Confirmation: Explicit consent flow for all token approvals with risk visualization
- Price Deviation Alerts: Standardized safety warnings for unfavorable quotes
Supported Networksβ
| Network | Chain ID | Status |
|---|---|---|
| Ethereum | 1 | β Active |
| Arbitrum One | 42161 | β Active |
| Optimism | 10 | β Active |
| Base | 8453 | β Active |
How Uniswap Swaps Workβ
- Select tokens: Choose from the curated top-100 list or search for any token.
- Enter amount: Type the amount to swap or use quick buttons.
- Review quote: See price impact, route details, and fee breakdown.
- Approve token: Confirm the approval with clear risk information when required.
- Execute swap: Sign and submit via UniswapX or Classic routing.
- Track status: Follow real-time updates until confirmation.
Fee Structureβ
- SuperSafe Fee: 0.2%
- Uniswap Labs Fee: 0.2%
- Total: 0.4%
When approving a token for the first time, SuperSafe shows a detailed confirmation screen explaining what "Approve" means, the spender address, and any unlimited approval warnings.
π Relay.link (Cross-Chain Bridge + Swap)β
Relay.link is the cross-chain bridge-and-swap provider for moving value between networks in one guided flow.
Key Featuresβ
- Cross-Chain Swaps: Swap tokens across different networks in one step
- 85+ Blockchains: Wide network support including all SuperSafe networks
- Meta-Aggregation: Best prices from multiple DEXs and bridges combined
- Route Visualization: See bridge, swap, and approval steps before execution
- Bridge Time Estimation: Dynamic completion time based on route and congestion
- Gas Estimation: Real-time gas cost display per step and total
Supported Networksβ
| Network | Chain ID | Cross-Chain | Status |
|---|---|---|---|
| SuperSeed | 5330 | β Enabled | β Active |
| Ethereum | 1 | β Enabled | β Active |
| Optimism | 10 | β Enabled | β Active |
| Base | 8453 | β Enabled | β Active |
| BNB Chain | 56 | β Enabled | β Active |
| Arbitrum One | 42161 | β Enabled | β Active |
How Relay Swaps Workβ
- Select origin token: Uses your active network.
- Select destination: Choose destination network and token.
- Enter amount: Specify how much to swap.
- Review route: Inspect the bridge + swap path.
- Execute swap: Approve and submit the cross-chain transaction.
- Track bridging: Follow status and estimated completion time.
Fee Structureβ
- SuperSafe Partner Fee: 0.4%
- Total: 0.4%
The origin network is always your currently active network. To swap from a different network, switch your active network first via the header.
Khalani / HyperStream (Cross-Chain Intents)β
Khalani is integrated as a cross-chain intent-routing provider powered by HyperStream. It lets users select a source token, destination network, destination token, and amount. HyperStream returns executable routes, and SuperSafe tracks the resulting order until it is filled, refunded, or failed.
Key Featuresβ
- Cross-chain intent routing through HyperStream.
- Multiple route support when HyperStream returns alternatives.
- Route sorting that prioritizes executable
CONTRACT_CALLroutes, sufficient quote lifetime, best output amount, and shorter expected duration. - Quote expiry handling to prevent users from executing stale routes.
- Order lifecycle tracking after deposit submission.
- Shared SuperSafe fee configuration when referrer fees are available.
- Background-only execution: the popup delegates to the background stream handler; private keys never leave the background service worker.
Supported Networksβ
| Network | Chain ID | Khalani / HyperStream |
|---|---|---|
| Ethereum | 1 | β Active |
| Optimism | 10 | β Active |
| BNB Chain | 56 | β Active |
| Base | 8453 | β Active |
| Arbitrum One | 42161 | β Active |
| Monad | 143 | β Active |
| SuperSeed | 5330 | Disabled |
| U2U | 39 | Disabled |
How Khalani Swaps Workβ
- The user selects the source token on the active wallet network.
- The user selects the destination network and destination token.
- SuperSafe requests an
EXACT_INPUTquote from HyperStream. - HyperStream returns one or more executable routes.
- The user confirms the selected route.
- SuperSafe asks HyperStream to build the deposit actions.
- The background service worker validates every returned EIP-1193 action before executing it.
- SuperSafe submits the deposit transaction hash to HyperStream.
- SuperSafe polls the order until it reaches a terminal status such as filled, refunded, or failed.
Security Modelβ
SuperSafe executes Khalani routes only through the background context. Returned EIP-1193 actions are validated before execution:
wallet_switchEthereumChainmust target the expected source chain.eth_sendTransaction.frommust match the active wallet.- Transaction
chainIdmust match the source chain. - Transaction
tomust be a valid EVM address. - Unsupported action types fail closed.
- MVP execution is scoped to EVM
CONTRACT_CALLdeposit routes.
MVP Limitationsβ
- EVM-only execution.
CONTRACT_CALLdeposit routes only.- No Solana actions.
- No direct
TRANSFERorPERMIT2deposit execution in the first integration. - SuperSafe does not run a Khalani/Medusa solver.
- SuperSeed and U2U remain disabled until HyperStream supports those chains.
π Bebop (Gasless Same-Chain)β
Bebop provides gasless same-chain swaps via the Bebop JAM protocol with built-in MEV protection.
Key Featuresβ
- Gasless Swaps: Zero gas fees via Permit2 after the one-time token approval
- MEV Protection: Private execution protects from sandwich attacks and frontrunning
- EIP-712 Signing: Orders are signed, not sent as transactions
- Best Price: Aggregated liquidity from professional market makers
- Single Approval: One-time Permit2 approval covers future swaps for that token
Supported Networksβ
| Network | Chain ID | Protocol | Status |
|---|---|---|---|
| SuperSeed | 5330 | JAM | β Active |
| Ethereum | 1 | JAM + RFQ | β Active |
| Optimism | 10 | JAM + RFQ | β Active |
| Base | 8453 | JAM + RFQ | β Active |
| BNB Chain | 56 | JAM + RFQ | β Active |
| Arbitrum One | 42161 | JAM + RFQ | β Active |
How Bebop Swaps Workβ
- Select tokens: Choose from and to tokens.
- Enter amount: Specify the amount to swap.
- Review quote: See price impact, route, and fee breakdown.
- Approve token: Complete the one-time Permit2 approval when required.
- Sign order: Sign EIP-712 typed data.
- Order executes: Bebop settles the order on-chain.
Fee Structureβ
- SuperSafe Partner Fee: 0.4%
- Total: 0.4%
Bebop uses Permit2 + EIP-712 signing, so your swap does not require an on-chain transaction from you. The market maker settles the trade; you only pay gas once per token for the initial Permit2 approval.
Provider Comparisonβ
| Feature | Uniswap | Relay.link | Khalani | Bebop |
|---|---|---|---|---|
| Same-chain swaps | Yes | Yes | Route-dependent | Yes |
| Cross-chain swaps | No | Yes | Yes | No |
| Intent routing | No | No | Yes | Yes, for Bebop orders |
| Gasless swap execution | UniswapX only | No | No, source-chain deposit required | Yes after approval |
| Order lifecycle tracking | Yes | Yes | Yes | Yes |
| Best use case | Same-chain DEX routing | Bridge + swap | Cross-chain intent routes | Gasless MEV-protected swaps |
Shared Featuresβ
Slippage Configurationβ
All providers share the same slippage control:
Slippage Settings:
βββ 0.1% - Very Low (May fail in volatile markets)
βββ 0.5% - Recommended (Default)
βββ 1.0% - Medium
βββ 2.0% - High
βββ Custom - User defined
β½ Gas Validation Systemβ
SuperSafe protects every swap with real-time gas validation:
- Scam Detection: Blocks transactions with gas > 50% of swap value.
- Balance Validation: Ensures sufficient native tokens for gas.
- Real-time Monitoring: Fetches current network gas prices.
- Button-Integrated Alerts: Visual feedback directly on the swap button.
See Gas Validation System for full details.
π‘οΈ Price Deviation Alertsβ
All swap providers include standardized price deviation warnings:
- > 5% deviation: High alert for unfavorable quotes.
- > 2% deviation: Moderate caution indicator.
- < 2% deviation: Normal.
Swap Interfaceβ
Provider Tabsβ
Switch between providers using the tab selector at the top of the swap screen:
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β [π¦ Uniswap] [π Relay] [Khalani] [π Bebop] β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Slippage: 0.5% [βοΈ] β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β From Token: [ETH βΌ] [1.0] [Max] [50%] [25%] β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β To Token / Network: [Base βΌ] [USDC βΌ] [β$1,200] β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Route, quote expiry, gas, lifecycle, and fee details β β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β [π Swap Tokens] β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Token Selectionβ
- Click Token Dropdown: Opens the token selector.
- Search: Type to search for any token.
- Balance Display: Shows your balance for each token.
- Quick Buttons: Max, 50%, 25% for quick amount entry.
Fee Summaryβ
All swap providers apply or share the 0.4% SuperSafe fee configuration when the provider supports it:
Fee Structure by Provider:
βββ π¦ Uniswap: 0.2% SuperSafe + 0.2% Uniswap Labs = 0.4%
βββ π Relay: 0.4% SuperSafe Partner Fee = 0.4%
βββ Khalani: Shared SuperSafe fee configuration when referrer fees are available
βββ π Bebop: 0.4% SuperSafe Partner Fee = 0.4%
All fees are transparently displayed in the quote details before you confirm any swap.
Troubleshootingβ
Common Issuesβ
| Issue | Likely Cause | Solution |
|---|---|---|
| Swap button disabled | Insufficient gas balance | Add native tokens (ETH, BNB, etc.) |
| "Gas Fee Too High" warning | Possible scam contract | Verify the token contract before proceeding |
| High price impact | Large amount or low liquidity | Reduce amount or wait for more liquidity |
| Approval failed | Insufficient gas | Ensure enough native tokens for the approval transaction |
| Slippage exceeded | Market moved during swap | Increase slippage tolerance and retry |
| Cross-chain swap slow | Bridge congestion or pending intent fill | Check the Relay bridge time or Khalani order status |
| Khalani quote expired | Quote lifetime elapsed | Request a fresh route before executing |
Choosing the Right Providerβ
- Standard same-chain swaps: Use Uniswap for DEX routing and token coverage.
- Bridge + swap transfers: Use Relay.link to bridge and swap in one flow.
- Cross-chain intent routes: Use Khalani / HyperStream when you want intent routing with order lifecycle tracking.
- Gasless same-chain swaps: Use Bebop for zero-gas execution after approval.
Best Practicesβ
- Compare providers: Check quotes across providers for best price and route type.
- Start with small amounts: Test new token pairs with small swaps first.
- Watch quote expiry: Refresh expired Khalani and Relay quotes before execution.
- Check gas alerts: Investigate warnings before proceeding.
- Verify tokens: Confirm token contract addresses, especially for new tokens.
Next Stepsβ
Now that you can swap tokens:
- Switch Networks - Work with different networks
- Connect to dApps - Use with dApps
- Security Overview - Learn about security
Ready to switch networks? Continue to Network Switching!
Document Status: β
Current as of June 24, 2026
Code Version: v3.1.8 + Khalani / HyperStream integration