Introduction
Omnipair provides a comprehensive developer toolkit for building DeFi applications on Solana. Whether you’re integrating swaps, building lending interfaces, or creating automated strategies, our stack gives you everything you need.Solana Program
On-chain Rust program with all protocol instructions
TypeScript SDK
Anchor-based SDK with full type safety
REST API
Real-time indexer API for querying protocol data
Architecture
Program ID
The Omnipair program is deployed on Solana mainnet and devnet:| Network | Program ID |
|---|---|
| Mainnet | omnixgS8fnqHfCcTGKWj6JtKjzpJZ1Y5y9pyFkQDkYE |
| Devnet | omnixgS8fnqHfCcTGKWj6JtKjzpJZ1Y5y9pyFkQDkYE |
Quick Start
1. Install the SDK
2. Initialize the Program
3. Fetch Pool Data
4. Execute a Swap
Protocol Constants
Key protocol parameters that are useful for calculations:| Constant | Value | Description |
|---|---|---|
MAX_COLLATERAL_FACTOR_BPS | 8,500 | Maximum 85% LTV for dynamic CF |
LTV_BUFFER_BPS | 500 | 5% buffer between borrow and liquidation |
LIQUIDATION_PENALTY_BPS | 300 | 3% total penalty on liquidation |
LIQUIDATION_INCENTIVE_BPS | 50 | 0.5% reward for liquidators |
FLASHLOAN_FEE_BPS | 5 | 0.05% flash loan fee |
LIQUIDITY_WITHDRAWAL_FEE_BPS | 100 | 1% LP withdrawal fee |
NAD | 1,000,000,000 | 10^9 precision for fixed-point math |
BPS_DENOMINATOR | 10,000 | Basis points denominator |
Resources
GitHub Repository
Source code, examples, and verifiable builds
NPM Package
TypeScript SDK on NPM
Indexer Repository
Data indexer and REST API source
Security
Audit reports and security information
Support
- Discord: discord.gg/omnipair - Developer support channel
- GitHub Issues: omnipair/omnipair-rs/issues - Bug reports and feature requests