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
- Sets initial parameters(usafun config) and whitelist
- Can Modify protocol parameters
- Controls whitelist status
- Fee recipient
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.
- Initialize curve parameters
- Enable whitelist
- Configure initial purchases
The fee rate is 1%(customizable) and it is taken for all the trades before and after the curve by the admin wallet
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.
- E2eDwJtbiXnnTnD1S3H6ESxCxZS6MamWhv45cB6uKXiX