[ DOCS · v0.1 ]

How Ethergate works

A single screen that swaps from any major non-EVM chain into Ethereum and lets users put the proceeds to work in liquid staking, restaking, or token staking — without leaving the page.

[ OVERVIEW ]

What it does

Ethergate is a cross-chain swap + staking dApp. The user connects two wallets — a source wallet on their chain of choice (Solana, TON, Tron, XRP, etc.) and a destination EVM wallet — and runs through a two-step flow:

  1. Cross-chain swap: source asset → ETH on Ethereum mainnet. Quotes are pulled live from up to 7 routing providers; the best one wins.
  2. Yield generation (optional): stake the freshly-bridged ETH into one of 4 protocols, all natively, from the same screen.

The staking step is visible from the start (greyed out) — it only unlocks once the swap completes or the destination wallet already has ETH.

[ ARCHITECTURE ]

The flow

Source wallet
ROUTING AGGREGATOR
NEAR Intents · LI.FI · Squid · Rango · Skip · Layerswap
/api/eth-stats
gas · prices · beacon · APR
ETH on user's EVM wallet
STAKING WIDGET
stETHvia Lidosubmit(treasury)
wstETHvia Lido Earnreceive() ETH
P2Pvia P2P.orgembedded widget
cSSVvia SSVUniswap zap → stake()
[ SOURCE CHAINS ]

13 supported

SOL · SolanaTON · TONNEAR · NEARTRX · TronXRP · XRP LedgerSUI · SuiXLM · StellarAPT · AptosDOT · PolkadotSTRK · StarknetATOM · CosmosOSMO · OsmosisTIA · Celestia

Each chain has its own wallet adapter and address-derivation logic; the destination is always an EVM wallet (Ethereum mainnet) connected via RainbowKit.

[ ROUTING ]

Cross-chain providers

On every quote, the app fans out to all available providers in parallel and picks the best route by output amount. Each provider is wrapped behind the same RouteProvider interface, so adding a new one is a single file.

NEAR Intents (1Click)intent
Primary cross-chain aggregator. Solver-based, ETH-denominated.DOCS ↗
THORChainpaused
Routing paused — security incident under investigation. Cosmos quotes fall back to Rango and Skip.DOCS ↗
LI.FIagg
Bridge + DEX aggregator with deep EVM/non-EVM coverage.DOCS ↗
Squidagg
Axelar-powered cross-chain router for general message passing.DOCS ↗
Rangoagg
Multi-bridge aggregator including non-EVM routes.DOCS ↗
Skipagg
Cosmos-ecosystem routing (Cosmos, Osmosis, Celestia).DOCS ↗
Layerswapcex
Centralized-flow bridge with low fees and broad coverage.DOCS ↗
[ STAKING ]

Yield protocols

After the cross-chain swap delivers ETH, the user can stake it through any of these natively:

stETH · via Lido
Liquid staking

Native submit() with on-chain referral. Receive stETH 1:1.

APP ↗
wstETH · via Lido Earn
Auto-compounding

Send ETH directly to wstETH contract (single tx, non-rebasing).

APP ↗
P2P · via P2P.org
Restaking vault

ETH DeFi Vault — institutional restaking, embedded via official widget.

APP ↗
cSSV · via SSV Network
Token staking

Stake SSV → mint cSSV 1:1, earn ETH-denominated network fees.

APP ↗

The SSV path includes an inline Uniswap V3 zap (0.3% SSV/WETH pool, QuoterV2 for live pricing) so users who only have ETH can buy SSV and stake in two clicks.

[ TECH STACK ]

What's under the hood

Frontend
Next.js 16 (App Router)React 19TypeScriptTailwind CSSTanStack Query
EVM
wagmiviemRainbowKit
Non-EVM wallets
Solana Wallet AdapterTonConnect UINEAR Wallet Selector@mysten/dapp-kit (Sui)Aptos Wallet AdapterGemWallet / Crossmark (XRP)Stellar SDKPolkadot ExtensionCosmJS
Routing
NEAR Intents 1Click APITHORChainLI.FISquidRangoSkipLayerswap
Contracts touched
Lido stETH / wstETHSSV Network + cSSVUniswap V3 (SwapRouter02, QuoterV2)Beacon deposit contract