Guides
Deposit into Apex Omni (a Perpetual DEX)
This guide demonstrates how to implement cross-chain deposits using Aarc’s FundKit SDK into a perpetual DEX. The example shows how to create a dApp that allows users to deposit funds from any supported chain to a destination contract on any chain to Apex Omni Exchange.
Prerequisites
- Node.js and npm installed
- Basic understanding of React and Web3 development
- An Aarc API key
You need to get your contract address whitelisted with Aarc. Contact our support team to request whitelisting.
Quick Start
- Create a new Vite React project:
- Install required dependencies:
- Create a
.env
file with your Aarc API key:
Implementation Guide
1. Setup Aarc Configuration
Create a configuration file for Aarc’s FundKit SDK:
2. Create the Deposit Component
3. Setup App Component
User Flow
- User connects their wallet
- User enters the amount they want to deposit into Apex Omni
- User clicks the “Deposit” button
- Aarc modal opens showing available payment options
- User selects their preferred payment method
- Transaction is processed cross-chain
- Funds are deposited to the destination contract
User selecting payment method in Aarc modal
Successfully depositing funds cross-chain
Example Implementation
You can find a complete working example at:
- GitHub: aarc-xyz/aarc-apex-omni-deposit
- Live Demo: aarc-apex-omni-deposit.netlify.app
Support
For additional queries contact support.