Documentation
Technical overview and integration guide
1. What is Omni
Omni is a precision trading platform built for BNB Chain that provides seamless token swaps with intelligent routing. Unlike traditional DEX aggregators, Omni specializes in Four.meme protocol integration while automatically detecting and routing migrated tokens through PancakeSwap.
2. Swap Architecture
Four.meme Buy Path
For tokens still in their raise phase, Omni routes trades through TokenManager2 contract. This path offers:
• Direct protocol integration
• Minimal fees
• Real-time quote calculation via TokenManagerHelper3
• Automatic slippage protection
The system calls tryBuy() to simulate the trade before execution, ensuring accurate output estimates.
Migrated Token (PancakeSwap) Path
When liquidityAdded flag is true, Omni automatically switches to PancakeSwap V2 Router:
• Uses swapExactETHForTokensSupportingFeeOnTransferTokens for buys
• Uses swapExactTokensForETHSupportingFeeOnTransferTokens for sells
• Calculates quotes via getAmountsOut
• Handles token approvals seamlessly
No manual intervention required - the platform detects migration status automatically.
3. Data Feeds
DexScreener OHLC
Real-time price charts powered by DexScreener API:
• Live candlestick data
• 24h volume tracking
• Liquidity metrics
• Market cap calculations
• Auto-refresh every 15 seconds
TokenManager Helper
Contract: 0xF251F83e40a78868FcfA3FA4599Dad6494E46034
Provides essential token information:
• Version and trading status
• Fee structure
• Migration state
• Reserve data
• Last traded price
4. Integrations
BNB Chain
Network: BSC Mainnet (Chain ID: 56)
RPC: https://bsc-dataseed.binance.org
All trades settle on-chain with full transparency.
Wallet Connect
Supported wallets:
• MetaMask
• Trust Wallet
• WalletConnect compatible wallets
Powered by RainbowKit for seamless connection experience.
AI Analyzer
Token analysis powered by OpenAI GPT-4:
• Automated risk assessment
• Liquidity analysis
• Volatility markers
• Trading confidence scores
• Summary of fundamentals
Simply enter a token address and click "Analyze" before trading.
5. Future Expansion
Coming soon:
• Referral system with revenue sharing
• Advanced charting tools
• Portfolio tracking
• Multi-chain support
• API access for developers
Stay tuned for updates.
Need help? Technical questions can be directed to our development team.
Always verify contract addresses before trading.