Production-ready cross-chain decentralized exchange aggregator with atomic swap capabilities
Live Demo β’ π Documentation β’ π Report Bug β’ π‘ Request Feature
- 8 Major Networks: Ethereum, Arbitrum, Optimism, Base, Polygon, zkSync, Linea, Scroll
- Atomic Execution: Guaranteed swap completion or full revert
- MEV Protection: Advanced protection against front-running and sandwich attacks
- Optimal Routing: Dijkstra's algorithm with gas cost weighting
- LayerZero V2: Ultra-light node cross-chain messaging
- Axelar Network: Secure cross-chain communication
- Wormhole: Decentralized cross-chain bridge protocol
- Unified Liquidity Pools: Cross-chain liquidity aggregation
- Flash Loans: Capital-efficient arbitrage opportunities
- Yield Farming: Competitive APY on liquidity provision
- Impermanent Loss Protection: Advanced risk mitigation
- OpenZeppelin Standards: Battle-tested security patterns
- Circuit Breakers: Automatic emergency stops
- Multi-sig Governance: Decentralized protocol management
- Comprehensive Audits: Security-first development approach
- Gas Optimization: Up to 40% gas savings
- Real-time Quotes: Sub-second price discovery
- Slippage Protection: Configurable tolerance levels
- Transaction Batching: Efficient multi-operation execution
contracts/
βββ CrossChainRouter.sol # Main routing contract
βββ LiquidityPool.sol # Unified liquidity management
βββ FlashLoan.sol # Flash loan functionality
βββ PriceOracle.sol # Price feed aggregation
βββ GasOptimizer.sol # Gas optimization engine
βββ EmergencyProtocol.sol # Emergency management
βββ adapters/
βββ LayerZeroBridgeAdapter.sol
βββ AxelarBridgeAdapter.sol
βββ WormholeBridgeAdapter.sol
- Next.js 14: React framework with App Router
- TypeScript: Type-safe development
- Tailwind CSS: Utility-first styling
- Framer Motion: Smooth animations
- wagmi + viem: Ethereum interactions
- RainbowKit: Wallet connection
- Redux Toolkit: Predictable state management
- React Query: Server state caching
- Apollo Client: GraphQL data fetching
- Node.js >= 18.0.0
- npm >= 8.0.0
- Git
- Clone the repository
git clone https://github.com/quantlink/qwap.git
cd qwap- Install dependencies
npm install- Set up environment variables
cp .env.example .env.local
# Edit .env.local with your configuration- Start development server
npm run dev- Open your browser
http://localhost:3000
npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run typecheck # Check TypeScript typesnpm run test # Run Jest tests
npm run test:watch # Run tests in watch mode
npm run test:coverage # Run tests with coverage
npm run test:contracts # Run Hardhat contract tests
npm run test:e2e # Run Playwright E2E testsnpm run compile # Compile smart contracts
npm run deploy:localhost # Deploy to local network
npm run deploy:mainnet # Deploy to Ethereum mainnet
npm run deploy:arbitrum # Deploy to Arbitrum
npm run verify:mainnet # Verify contracts on Etherscan
npm run node # Start local Hardhat node
npm run clean # Clean compiled artifactsquantlink-qwap/
βββ src/
β βββ app/ # Next.js App Router pages
β βββ components/ # React components
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utility libraries
β βββ store/ # Redux store
βββ contracts/ # Smart contracts
βββ scripts/ # Deployment scripts
βββ test/ # Contract tests
βββ docs/ # Documentation
| Network | Chain ID | Status | Bridge Protocols |
|---|---|---|---|
| Ethereum | 1 | β Live | LayerZero, Axelar, Wormhole |
| Arbitrum | 42161 | β Live | LayerZero, Axelar, Wormhole |
| Optimism | 10 | β Live | LayerZero, Axelar, Wormhole |
| Base | 8453 | β Live | LayerZero, Axelar, Wormhole |
| Polygon | 137 | β Live | LayerZero, Axelar, Wormhole |
| zkSync Era | 324 | β Live | LayerZero |
| Linea | 59144 | β Live | LayerZero |
| Scroll | 534352 | β Live | LayerZero |
- Total Volume: $2.8B+
- 24h Volume: $12.8M+
- Total Transactions: 1.8M+
- Average Gas Savings: 23.5%
- Supported Tokens: 500+
- Active Users: 50K+
We offer bug bounties for critical vulnerabilities. See our Bug Bounty Program for details.
- β Reentrancy protection
- β Integer overflow protection
- β Access control mechanisms
- β Emergency pause functionality
- β Timelock governance
- β Multi-signature requirements
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
- TypeScript for type safety
- ESLint + Prettier for code formatting
- Jest for unit testing
- Hardhat for contract testing
- Conventional commits
This project is licensed under the MIT License - see the LICENSE file for details.
- Website: quantlinkai.com
- Twitter: @quantlink
- Email: contact@quantlinkai.com
Built with β€ by the Quantlink Team