CryptoForge Store #2

DeFi Router

Production-ready swap routing, aggregation, and orderflow monetization tools.
Build your own DEX aggregator in days, not months.

10 Products
200+ Files
5 Chains
95%+ Test Coverage
Solidity ^0.8.24 OpenZeppelin v5 Foundry Tests Ethereum • Arbitrum • Base • Optimism • Polygon

Save with Bundles

Get multiple products at a fraction of the individual price.

SAVE 36%

Starter Bundle

Everything you need to build your first swap router. Router contract, CoW SDK, slippage guard, and quote comparison UI.

$46.96 $29.99
  • Swap Router Contract $14.99
  • CoW Protocol SDK $9.99
  • Slippage Guard $7.99
  • Quote Comparison UI $9.99
Buy Starter — $29.99

Product Catalog

10 battle-tested products for building, deploying, and operating DEX routing infrastructure.

#1
Contracts

Swap Router Contract

Multi-DEX swap router with fee-recipient monetization. Routes trades across Uniswap V2/V3, SushiSwap via pluggable adapter pattern. 24h timelock on fee changes.

Solidity OpenZeppelin v5 Foundry
#2
Tooling

Routing Engine

Off-chain pathfinding engine for optimal trade routes. Dijkstra/DFS graph algorithms, split-route optimization, gas-aware comparison. TypeScript + Python.

TypeScript Python ethers.js
#3
SDK

CoW Protocol SDK

TypeScript/Python SDK for CoW Protocol surplus-based routing. EIP-712 order signing, surplus tracking, order lifecycle management.

TypeScript Python ethers.js httpx
#4
Contracts

Slippage Guard

Pre-trade simulation and slippage protection module. Chainlink oracle price validation, balance-diff verification, composable with any router.

Solidity Chainlink Foundry
#5
API

Aggregator API

REST API wrapping 1inch, 0x, Paraswap, CowSwap with your fee layer. Parallel quote fetching, net-output ranking, Redis caching.

Python FastAPI Redis Docker
#6
Frontend

Quote Comparison UI

React widget comparing swap quotes across 6 DEX venues. Recharts visualization, auto-refresh, one-click swap execution via wagmi.

React TypeScript wagmi Recharts
#7
Contracts

Fee Splitter

On-chain fee splitting for partner referrals and revenue shares. Up to 10 recipients, pull/push patterns, ETH + ERC-20 support.

Solidity OpenZeppelin v5 Foundry
#8
Frontend

Trade Analytics Dashboard

React dashboard for trade execution analytics. Volume charts, slippage scatter plots, provider comparison, gas efficiency, fee revenue tracking.

React TypeScript wagmi Recharts
#9
Hybrid

Limit Order Book

Off-chain limit orders with on-chain settlement. EIP-712 signed orders, keeper bot, REST API, GTC + FOK, partial fills, batch execution.

Solidity TypeScript Express SQLite
#10
Tooling

RPC Load Balancer

Multi-provider RPC management with failover, rate limiting, and latency-based routing. Round-robin, least-latency, weighted-random strategies.

TypeScript Python undici asyncio

Why DeFi Router?

💰

Monetize Orderflow

Built-in fee-recipient pattern across all contracts. Capture 0.05%-1% on every routed swap. Configurable with timelocked governance.

Optimal Routing

Graph-based pathfinding engine finds the cheapest route across Uniswap, SushiSwap, Curve, Balancer, and more. Split routes for better execution.

🛡

MEV Protection

Slippage Guard with Chainlink oracle validation. CoW Protocol integration for surplus-based routing. Limit orders to avoid on-chain MEV.

Production-Ready

Not hackathon code. NatSpec documentation, comprehensive Foundry tests (unit + fuzz + invariant), deploy scripts, and integration guides.

Multi-Chain

Deploy to Ethereum, Arbitrum, Base, Optimism, and Polygon. Chain configs included. Same contracts, same security, lower gas on L2s.

📊

Full Stack

Contracts + SDKs + dashboards + APIs + keeper bots. Everything from Solidity to React to Python to TypeScript. Ship the whole routing stack.

Free Resources

📋

DEX Routing Architecture Guide

How DEX aggregators work: routing algorithms, fee models, and MEV considerations. Free download.

Orderflow Monetization Playbook

How to build and monetize your own swap routing infrastructure. Revenue models + implementation guide.

FAQ

What DEXs are supported?

The routing contracts and pathfinding engine support Uniswap V2/V3, SushiSwap, Curve, Balancer, and 1inch. The pluggable adapter pattern makes it easy to add new DEX integrations.

What chains are supported?

All contracts deploy to Ethereum, Arbitrum, Base, Optimism, and Polygon. Chain configs are included. Same contracts, same security — lower gas on L2s.

Is the fee splitter customizable?

Yes — the Fee Splitter supports any split ratio with up to 10 recipients. Configure partner referral splits, revenue shares, and protocol fees with both pull and push payment patterns.

Are the contracts audited?

Every contract includes comprehensive Foundry test suites (unit, fuzz, and invariant tests) and detailed security notes. We recommend a professional audit before mainnet deployment with significant volume.

What license are the products under?

All products are MIT licensed. You can use, modify, and distribute them in commercial projects without restriction.

What support is included?

The Pro Bundle includes 30 days of priority support. Individual product purchases are supported through our community channels. All products include documentation and examples.

More from CryptoForge

DeFi Router is one of 10 CryptoForge stores. Build your entire DeFi stack.