Tronzit-Veca
Pumpfun-Smart-Contract
TypeScript

Pump fun smart contract, pump fun fork, pump fun clone

Last updated Jun 29, 2026
129
Stars
47
Forks
0
Issues
0
Stars/day
Attention Score
81
Language breakdown
TypeScript 63.4%
Rust 36.6%
Files click to expand
README

Pumpfun: Solana Smart Contract on GitHub

Official Pump.fun compatible Solana smart contract implementation built with Rust and Anchor.

Supports Raydium LP creation, Meteora migration, bonding curve token launch, whitelist control and fee management. Reference implementation for pump.fun style token launch contracts.

Welcome to the official Raydium LP Migrating Pump.fun smart contract repository on GitHub! This project is a cutting-edge Solana smart contract powering the Pump.fun DeFi platform. If you’re looking for the best example of a Solana “pump” project on GitHub, you’re in the right place.

Why Pump.fun is the Best Solana Pump Project on GitHub

Pump.fun is designed for the Solana blockchain, enabling fun and innovative DeFi experiences. Whether you want to create, manage, or interact with liquidity pools, this GitHub repo is your go-to resource for Solana pump projects.

📞 Support

Official Source

This repository contains the original Pump.fun compatible contract implementation.

Timeline:

  • First commit: 2024-06-10
  • First mainnet TX: Transaction Link
  • First public release: 2024-07-10

🚀 Features

  • Virtual LP Management: Add and remove virtual liquidity pools
  • Raydium Pool Creation: Automated Raydium pool creation with CPI calls
  • Meteora Integration: Advanced DEX integration for enhanced liquidity
  • EVM Compatibility: Cross-chain functionality support
  • Automated Fee Management: 5% LP creation fee from reserves
  • Solana Native: Built on Solana blockchain for high performance

📋 Table of Contents

🛠️ Installation

Prerequisites

  • Rust 1.70+
  • Solana CLI 1.91.8+
  • Anchor Framework 0.29.0+

Setup

# Clone the repository
git clone https://github.com/Tronzit-Veca/Pumpfun-Smart-Contract.git
cd pumpfun-smart-contract

Install dependencies

npm install

Build the program

anchor build

Deploy to devnet

anchor deploy --provider.cluster devnet

📖 Usage

Basic LP Operations

import { Connection, PublicKey } from '@solana/web3.js';
import { Program } from '@coral-xyz/anchor';

// Initialize connection const connection = new Connection('https://api.devnet.solana.com');

// Add virtual LP await program.methods .addVirtualLp(amount, tokenMint) .accounts({ user: wallet.publicKey, pool: poolAddress, }) .rpc();

// Remove virtual LP await program.methods .removeVirtualLp(amount, tokenMint) .accounts({ user: wallet.publicKey, pool: poolAddress, }) .rpc();

Raydium Pool Creation

// Create Raydium pool with CPI calls
await program.methods
  .createRaydiumPool(
    tokenAMint,
    tokenBMint,
    initialLiquidity
  )
  .accounts({
    authority: wallet.publicKey,
    raydiumProgram: raydiumProgramId,
  })
  .rpc();

🏗️ Architecture

The smart contract is built using the Anchor framework and consists of:

  • State Management: Comprehensive state structures for LP pools
  • Instruction Modules: Modular instruction handlers for different operations
  • Error Handling: Custom error types for better debugging
  • Constants: Centralized configuration management

Key Components

  • state.rs: Core state structures and account definitions
  • instructions/: Modular instruction handlers
  • utils/: Utility functions and helpers
  • errors.rs: Custom error definitions
  • consts.rs: Configuration constants

📚 API Reference

Core Functions

| Function | Description | Parameters | |----------|-------------|------------| | addvirtuallp | Add virtual liquidity to pool | amount, token_mint | | removevirtuallp | Remove virtual liquidity from pool | amount, token_mint | | createraydiumpool | Create new Raydium pool | tokena, tokenb, liquidity | | updatepoolfees | Update pool fee configuration | newfeerate |

🔍 Examples

Transaction Examples

Check out these real transactions on Solana Explorer:

Fee Structure

The contract implements a 5% LP creation fee calculated from reserves:

pub const LPCREATIONFEE_RATE: u64 = 500; // 5% (500 basis points)

🤝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

# Run tests
anchor test

Lint code

npm run lint

Format code

npm run lint:fix

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Related Links


Built with ❤️ for the Solana ecosystem

Frequently Asked Questions

What is Pump.fun on Solana?

Pump.fun is a fun and innovative DeFi project built on the Solana blockchain. This GitHub repository contains the official smart contract code for Pump.fun.

How do I use Pump.fun on GitHub?

Clone the Pump.fun GitHub repo, follow the instructions, and deploy the smart contract to Solana.

Why is Pump.fun the best Solana pump project on GitHub?

Pump.fun combines the speed of Solana, the excitement of pump projects, and the transparency of open-source development on GitHub.

© 2026 GitRepoTrend · Tronzit-Veca/Pumpfun-Smart-Contract · Updated daily from GitHub