markdown# Orbit Swap
Orbit Swap is a decentralized exchange (DEX) built on the Stellar blockchain using Soroban smart contracts. It implements concentrated liquidity positions similar to Uniswap v3, allowing liquidity providers to allocate their assets more efficiently within customized price ranges.
- Concentrated Liquidity Pools: Create and manage liquidity positions in specific price ranges for maximum capital efficiency
- Multiple Fee Tiers: Pools support different fee levels (0.01%, 0.05%, 0.3%) optimized for various trading pairs these are currently not used
- Hooks: Not fully working but a basis for hook implementations as seen in Uniswap v4
- Interactive UI: Visualize liquidity distributions and manage positions through an intuitive interface
- Wallet Integration: Seamless connection with Stellar wallets (Freighter, xBull, Lobstr, etc.)
- Real-time Price Charts: Monitor price movements and liquidity concentrations
- Frontend: Next.js with React, TailwindCSS, Recharts for visualizations
- Smart Contracts: Soroban (Stellar's smart contract platform) written in Rust
- Wallet Integration: Stellar Wallets Kit for connecting to various Stellar wallets
Orbit Swap enables users to:
- Browse Pools: View existing liquidity pools with key metrics like TVL, volume, and current prices
- Add Liquidity: Deposit tokens into customized price ranges to earn trading fees
- Swap Tokens: Exchange tokens with optimized routing and minimal slippage
- Track Positions: Monitor the performance of liquidity positions
The concentrated liquidity model allows providers to allocate capital within specific price ranges, potentially generating higher returns from trading fees compared to traditional AMMs.
The repository contains both the Soroban smart contracts (written in Rust) and the frontend application (built with Next.js). The contracts handle the core DEX functionality, while the React frontend provides an intuitive interface for interacting with the protocol.