Skip to main content

Introduction

Welcome to the AchSwap and AchMarket documentation. This guide covers everything you need to know about our decentralized ecosystem on ARC Testnet.

What is AchSwap?​

AchSwap is a modern decentralized exchange (DEX) that combines the best of Uniswap V2, V3, and V4 mechanics. Built on ARC Testnet, it provides:

  • Smart Routing: Automatically finds the best swap rates across V2, V3, and V4 pools
  • Aggregator: Splits trades across multiple protocols for optimal execution
  • V4 Hook-Enabled Pools: Singleton pools with custom logic hooks
  • Gasless Swaps: Sign a transaction, relayer pays the gas
  • Concentrated Liquidity: Earn more fees with targeted liquidity positions
  • Cross-Chain Bridging: Move USDC between chains via Circle's CCTP

What is AchMarket?​

AchMarket is a decentralized prediction market platform where users can:

  • Create Markets: Set up prediction markets on any real-world event
  • Trade Outcomes: Buy and sell shares based on event outcomes
  • Resolve Markets: Market creators resolve markets with proof
  • Earn Fees: Platform earns 0.25% on resolved markets only

Key Features​

For AchSwap​

FeatureDescription
Token SwapExchange tokens with smart routing
V2 PoolsClassic AMM liquidity pools
V3 PoolsConcentrated liquidity positions
V4 PoolsHook-enabled singleton pools
AggregatorSplit routing across all protocols
Gasless SwapSign and swap without gas
Cross-ChainBridge USDC via CCTP

For AchMarket​

FeatureDescription
Market CreationCreate prediction markets
TradingBuy/sell outcome shares
LMSR PricingDynamic pricing based on volume
Market Stability TagsDegen, Stable, Highly Stable - see price sensitivity before trading
ResolutionResolve with proof, claim winnings

Network Information​

Both applications run on ARC Testnet:

ParameterValue
Network NameARC Testnet
Chain ID5042002 (hex: 0x4CEC52)
RPC URLhttps://arc-testnet.drpc.org/
Explorerhttps://testnet.arcscan.app
Native TokenUSDC
Factory Contract0xd7b122B12caCB299249f89be7F241a47f762f283
Lens Contract0x8241ACa87D4Dee4CA167b1e172Ed955522599e70

Getting Started​

  1. Set up your wallet - Install MetaMask or use RainbowKit
  2. Switch to ARC Testnet - Add the network to your wallet
  3. Get USDC - Use the bridge to transfer USDC from other testnets
  4. Start trading - Swap tokens or create/participate in prediction markets

Architecture Overview​

┌─────────────────────────────────────────────────────────────┐
│ ARC Testnet │
│ (Chain ID: 5042002) │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌─────────────────────┐ ┌─────────────────────────────┐│
│ │ AchSwap │ │ AchMarket ││
│ │ │ │ ││
│ │ • Swap Router │ │ • PredictionMarketFactory ││
│ │ • V2 / V3 / V4 │ │ • PredictionMarket ││
│ │ • Aggregator │ │ • LMSR Math ││
│ │ • Gasless Relayer │ │ ││
│ └─────────────────────┘ └─────────────────────────────┘│
│ │
└─────────────────────────────────────────────────────────────┘

Support​