A decentralized exchange (DEX) and launchpad platform built on Solana, featuring a bonding curve mechanism for token sales.
- Token Creation: Create new SPL tokens with metadata
- Bonding Curve: Automatic price discovery mechanism
- Buy/Sell Interface: User-friendly interface for token trading
- Real-time Balance: Track your token balance
- Pool Information: View detailed information about the bonding curve pool
- Frontend: Next.js, React, TailwindCSS
- Blockchain: Solana (Devnet)
- Smart Contracts: Anchor Framework
- Token Standard: Solana Program Library (SPL)
- Wallet Integration: Solana Wallet Adapter (Phantom, Solflare, Backpack)
- Node.js (v16+)
- npm or yarn
- Solana CLI (optional, for deployment)
- A Solana wallet (Phantom recommended)
-
Clone the repository:
git clone https://github.com/sagarregmi2056/solana-launchpad-dex.git cd solana-launchpad-dex
-
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm run dev # or yarn dev
-
Open http://localhost:3000 in your browser
The smart contract is already deployed to Solana Devnet at address: ExiyW5RS1e4XxjxeZHktijRhnYF6sJYzfmdzU85gFbS4
If you want to deploy your own version:
-
Build the Anchor program:
anchor build
-
Deploy to Solana Devnet:
anchor deploy --provider.cluster devnet
-
Update the
PROGRAM_ID
inutils/anchorClient.js
with your new program ID
- Connect your wallet
- Navigate to the "Create Token" tab
- Fill in the token details:
- Token Name
- Token Symbol
- Initial Price (in SOL)
- Price Slope (in SOL)
- Click "Create Token"
- Approve the transaction in your wallet
- Connect your wallet
- Navigate to the "Buy Tokens" tab
- Enter the amount of tokens you want to buy
- Review the estimated cost
- Click "Buy Tokens"
- Approve the transaction in your wallet
- Connect your wallet
- Navigate to the "Sell Tokens" tab
- Enter the amount of tokens you want to sell
- Click "Sell Tokens"
- Approve the transaction in your wallet
A bonding curve is a mathematical curve that defines the relationship between a token's price and its supply. In this application:
- The price increases as more tokens are purchased (positive slope)
- The price decreases as tokens are sold back to the curve
- The formula used is:
Price = InitialPrice + (Slope * Supply)
This creates a fair and transparent pricing mechanism that automatically adjusts based on demand.
MIT License
For questions or support, please open an issue on the GitHub repository or contact the development team.