A modern web application for performing cross-chain token swaps using the Mayan protocol. Built with Next.js, TypeScript, and Tailwind CSS.
- Cross-Chain Swaps: Swap tokens between different blockchain networks
- Supported Chains: Ethereum, Polygon, BSC, Avalanche, Arbitrum, Optimism, and Base
- Wallet Integration: Connect with various wallets through Dynamic Labs
- Real-Time Quotes: Get instant quotes for your swaps
- Modern UI: Beautiful, responsive interface built with Tailwind CSS
- Frontend: Next.js 15, React 19, TypeScript
- Styling: Tailwind CSS
- Wallet Integration: Dynamic Labs SDK
- Cross-Chain Protocol: Mayan Finance SDK
- Package Manager: Bun
-
Install dependencies:
bun install
-
Set up environment variables: Create a
.env.local
file with your Dynamic Labs environment ID:NEXT_PUBLIC_DYNAMIC_ENVIRONMENT_ID=your_environment_id_here
-
Run the development server:
bun run dev
-
Open your browser: Navigate to http://localhost:3000
- Connect Wallet: Connect your wallet using Dynamic Labs
- Select Chains: Choose source and destination chains
- Select Tokens: Pick the tokens you want to swap
- Enter Amount: Specify the amount to swap
- Get Quotes: Fetch available swap routes from Mayan
- Execute Swap: Choose a route and execute the swap
- Ethereum: Mainnet and Layer 2s
- Polygon: Polygon PoS
- BSC: Binance Smart Chain
- Avalanche: Avalanche C-Chain
- Arbitrum: Arbitrum One
- Optimism: Optimism
- Base: Coinbase Base
- Build:
bun run build
- Start:
bun run start
- Lint:
bun run lint