|
1 | | -# Pump Science Bonding Curve Protocol |
| 1 | +# Pump fun smart contract fork |
2 | 2 |
|
3 | | -A Solana protocol implementing an advanced bonding curve mechanism for fundraising and sustainable project funding. This protocol enables compound submitters to launch their own token ($DRUG) with dynamic fee structures and automated liquidity management. |
| 3 | +A solana token launch smart contract forking pump.fun & integrating meteora migration. |
4 | 4 |
|
5 | 5 | ## Core Features |
6 | 6 |
|
7 | | -### Bonding Curve Mechanism |
| 7 | +### Bonding Curve Price Logic |
8 | 8 |
|
9 | | -The protocol implements a constant product bonding curve (x * y = k) with the following initial parameters: |
10 | | - |
11 | | -- Initial Virtual Token Reserves: 1,073,000,000,000,000 |
12 | | -- Initial Virtual SOL Reserves: 30,000,000,000 |
13 | | -- Initial Real Token Reserves: 793,100,000,000,000 |
14 | | -- Total Token Supply: 1,000,000,000,000,000 |
15 | | - |
16 | | -The bonding curve ensures price discovery and continuous liquidity for the token. |
| 9 | +The protocol implements a constant product linear bonding curve (x * y = k) and ensures price discovery and continuous liquidity for the token. |
| 10 | +When the bonding curve accumulates 85 SOL total remaining token migrated to meteora. |
17 | 11 |
|
18 | 12 | ### Dynamic Fee Structure |
19 | 13 |
|
20 | 14 | Fees are calculated using a piecewise linear function based on user participation slots: |
21 | | - |
22 | | -1. Early Phase (t < 150): |
23 | | - - Fixed 99% fee |
24 | | -2. Transition Phase (150 ≤ t ≤ 250): |
25 | | - - Linear decrease: F(t) = -0.0083 * t + 2.1626 |
26 | | -3. Mature Phase (t > 250): |
27 | | - - Fixed 1% fee |
28 | | - |
29 | | -All fees are directed to the protocol's multisig wallet: `3bM4hewuZFZgNXvLWwaktXMa8YHgxsnnhaRfzxJV944P` |
30 | | - |
31 | | -### Automated Liquidity Management |
32 | | - |
33 | | -When the bonding curve accumulates 85 SOL: |
34 | | -1. X SOL is sent to the protocol multisig |
35 | | -2. Remaining SOL is used to seed a Meteora constant product liquidity pool |
36 | | -3. LP tokens are locked with claim authority assigned to the protocol multisig |
| 15 | +All fees are directed to the protocol's multisig wallet |
37 | 16 |
|
38 | 17 | ## Administrative Roles |
39 | 18 |
|
40 | | -### Curve Creator |
41 | | -- Can initialize new bonding curves |
42 | | -- Sets initial parameters and optional whitelist |
43 | | -- Configures launch timing and initial purchases |
| 19 | +Two authoities: |
| 20 | +- Global authority |
| 21 | +- Migration authority |
| 22 | + |
| 23 | +### Whitelist Future |
| 24 | +- Can set whitelist check allocation config on global settings. |
| 25 | +- Add whitelist creating pda per user in WL & delete pda account when need remove ( Global authority check ). |
44 | 26 |
|
45 | 27 | ### Admin |
46 | 28 | - Can modify protocol parameters |
47 | 29 | - Manages fee settings |
48 | 30 | - Controls whitelist status |
49 | 31 |
|
50 | | -### Fee Recipients |
51 | | -- Protocol Multisig (`3bM4hewuZFZgNXvLWwaktXMa8YHgxsnnhaRfzxJV944P`) |
52 | | - - Receives trading fees |
53 | | - - Has authority over locked LP tokens |
54 | | - - Receives swapped USDC from liquidity migrations |
55 | | - |
56 | | -## Creating a Bonding Curve |
57 | | - |
58 | | -To create a new bonding curve: |
| 32 | +### Transaction |
59 | 33 |
|
60 | | -1. Initialize curve parameters |
61 | | -2. Optional: Enable whitelist |
62 | | -3. Set launch timing |
63 | | -4. Configure initial purchases |
| 34 | +- Creating Global PDA. https://solscan.io/tx/5YmZqVgFcKk11uUVTBZvtMCnbbfthM4QpYHvvWdRNqXhmeyFmE85H5XeQF9pAX6M8DApqn1PeyCH9mYhdCsEkvce?cluster=devnet |
| 35 | +- Added WL. Create WL PDA. https://solscan.io/tx/3R4fXk3VYXUAAFEXhVoR52g8ZPnjeZcuEhkCPSiBKJQGbjgDW9dBNE7REsz3KwYPV582HzUZ9Qv7SwgnDxgoTXHU?cluster=devnet |
| 36 | +- Create Bonding Curve. https://solscan.io/tx/22cFFDRgLnBpce97FhSE9srHcopkmDG3WpiwbgpwAj6VReu8cLMaZv3vnEvXMBr48XrCLGQ2xAzdUKBxKdfHFx2i?cluster=devnet |
| 37 | +- Migrate meteora. https://solscan.io/tx/5F1R9WBYgDXyATWjyyrCJKL2wudjK4WNom6KL4H2LQjcabfLR3agoaifiQWwMEWpmR47bKozJSn1esLCWmyMaRHe?cluster=devnet |
0 commit comments