← Back to TideSwap

Documentation

Technical overview of TideSwap's architecture and integrations.

Overview

TideSwap is the DeFi homepage for Ink — a Layer 2 blockchain built by Kraken on the OP Stack. TideSwap aggregates liquidity from multiple DEXs to offer the best swap prices, and provides a unified interface for swapping, limit orders, cross-chain bridging, portfolio tracking, and yield discovery.

Architecture

TideSwap is a frontend-only application. It does not operate its own smart contracts for trading — instead, it routes through battle-tested protocols:

Swap Routing — 0x API

All swaps are routed through the 0x Swap API, which aggregates liquidity from DEXs on Ink including Velodrome V2, Velodrome V3, DYOR, InkySwap, SquidSwap, and Reservoir. The 0x smart order routing algorithm splits trades across sources to minimize price impact.

Token approvals use the 0x AllowanceHolder contract. TideSwap sets exact approval amounts (never unlimited) for maximum security.

Cross-Chain Bridge — LI.FI

The Bridge tab is powered by LI.FI, which aggregates multiple bridge protocols to find the fastest and cheapest route from any supported chain to Ink.

Price Feeds

Token prices are sourced from the CoinGecko API. Yield data on the Earn page comes from the DefiLlama API.

Network Details

NetworkInk
Chain ID57073
Native TokenETH
Block Explorerexplorer.inkonchain.com
RPChttps://rpc-gel.inkonchain.com

Supported Tokens

All tokens are verified as swappable via the 0x API on Ink. Addresses confirmed on explorer.inkonchain.com.

TokenAddressDecimals
ETHNative18
WETH0x4200...000618
USDC0x2D27...EAEd6
USDC.e0xF181...5D146
USDT00x0200...70c16
GHO0xfc42...9e7318
oUSDT0x1217...E1896
kBTC0x73E0...Db988
SolvBTC0xaE4E...4cB318
weETH0xA3D6...914b18
XAUT00xF502...0dAc6

Fee Structure

Swap Fee0.15% per trade (collected via 0x affiliateFee)
Bridge FeeSet by LI.FI / bridge protocol (not collected by TideSwap)
Gas FeesPaid to Ink validators (typically < $0.01)
Limit OrdersSame 0.15% fee when order executes

Security

Non-custodial: TideSwap never holds your funds. All trades execute through on-chain smart contracts.

Exact approvals: Token approvals are set to the exact trade amount, not unlimited. This limits exposure if a contract is compromised.

Server-side API keys: The 0x API key is stored server-side and proxied through our API routes. It is never exposed to the browser.

Security headers: The application deploys with strict Content-Security-Policy, X-Frame-Options, and other security headers via Vercel configuration.

Open Source

TideSwap's frontend code is open source and available on GitHub. We welcome contributions, bug reports, and security disclosures.