Skip to content

Forked version of Pump.fun smart contract migrated to raydium (Solana Pumpfun Smart Contract fork, Pumpfun smart contract development Tool, Pumpfun smart contract SDK)

Notifications You must be signed in to change notification settings

AnotherRusty/Pump.fun-Smart-Contract-Fork-Raydium

Repository files navigation

Pump.fun Smart Contract

This Pump.fun Smart Contract Fork is a powerful and customizable platform for token creation, market deployment, and liquidity pool management on Raydium.

This advanced fork of the original Pump.fun smart contract introduces a suite of enhanced features, enabling developers and creators to:

  • Launch tokens with customizable properties
  • Manage token authority with fine-grained control
  • Whitelist addresses for exclusive participation
  • Configure and govern liquidity with greater flexibility

How Works

1. Administrative Roles

  • Sets initial parameters(usafun config) and whitelist
  • Can Modify protocol parameters
  • Controls whitelist status
  • Fee recipient

2. Bonding Curve Mechanism

The protocol implements a constant product bonding curve (x * y = k).

TEST_DECIMALS = 6;
TEST_CURVE_LIMIT_LAMPORT = 4_000_000_000;
TEST_VIRTUAL_RESERVES_LAMPORT = 2_000_000_000;
TEST_RESERVE_TOKEN = 950_000_000_000;
TEST_TOKEN_SUPPLY = 1_000_000_000_000;

The bonding curve ensures price discovery and continuous liquidity for the token.

3. Create a Bonding Curve

  • Initialize curve parameters
  • Enable whitelist
  • Configure initial purchases

4. Fee structure

The fee rate is 1%(customizable) and it is taken for all the trades before and after the curve by the admin wallet

5. Migration

Migration is a critical process that occurs once the bonding curve has been completed and the tokens are empty.

People buy on the bonding curve and the market cap is growing. Once it reaches a market cap of $100k, the smart contract runs a CPI (Cross-Program Invocation) call to create a Raydium AMM.

Some Transactions Link

1. Created Coin Address:

2. Bonding Curve:

3. Bonding Curve PDA Address:

  • E2eDwJtbiXnnTnD1S3H6ESxCxZS6MamWhv45cB6uKXiX

4. Swap Tx

5. Bonding Curve Reaching Tx

About

Forked version of Pump.fun smart contract migrated to raydium (Solana Pumpfun Smart Contract fork, Pumpfun smart contract development Tool, Pumpfun smart contract SDK)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published