https://github.com/knightworlds/solana-pumpfun-smart-contract
Pumpfun smart contract, just forking contract
https://github.com/knightworlds/solana-pumpfun-smart-contract
anchor bonding-curve cpi liquidity pump pumpfun pumpfun-contract rust smart-contract smartcontract solana solana-pumpfun
Last synced: about 2 months ago
JSON representation
Pumpfun smart contract, just forking contract
- Host: GitHub
- URL: https://github.com/knightworlds/solana-pumpfun-smart-contract
- Owner: knightworlds
- Created: 2024-12-04T14:15:18.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-04T14:23:03.000Z (6 months ago)
- Last Synced: 2024-12-04T15:27:42.969Z (6 months ago)
- Topics: anchor, bonding-curve, cpi, liquidity, pump, pumpfun, pumpfun-contract, rust, smart-contract, smartcontract, solana, solana-pumpfun
- Language: TypeScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pumpfun Solana Smart Contract
Welcome to the Pumpfun Solana Smart Contract repository. This repository contains the Rust/Anchor-based smart contract powering the Pumpfun ecosystem. Designed with robust features and innovative logic, this contract is built to manage token minting, liquidity pools, token swaps, and market cap-based launches on Raydium.
If you have any questions or need support, feel free to reach out, and we can discuss the best way to assist you.## Key Features
The contract includes all the advanced features that define the Pumpfun platform:✅ Token Minting
Seamlessly mint Pumpfun tokens to kickstart your liquidity pool.✅ Create Liquidity Pools
Establish a pool with an initial 30 SOL virtual reserve, creating a strong foundation for token transactions.✅ Add Liquidity
Contribute liquidity to grow the pool and enhance token marketability.✅ Token Swapping
Facilitates token swaps based on a dynamic bonding curve price, calculated as:
`Price = Virtual SOL Reserve / Virtual Token Reserve.`✅ Raydium Launch Integration
Automatically launch on Raydium when the token’s market cap (price × 10⁹) reaches $69M. At launch:
- $12K in SOL ($24K total liquidity) is added to Raydium.
- Remaining liquidity reserves are allocated to the Pumpfun team for platform growth.## Unique Bonding Curve Logic
The contract uses a custom bonding curve mechanism defined by:
`X × Y = K²`
- X: Token price.
- Y: Token supply in the pool.
This ensures a dynamic and balanced liquidity model tailored to Pumpfun’s tokenomics.## Testing and Validation
### The contract includes comprehensive test cases to validate functionality, covering all features except Raydium Launch (which integrates with the ongoing project).
- Remove Virtual LP and Create Raydium Pool:### LP Creation Fee
- A 5% reserve fee applies when creating LPs, ensuring sustainable liquidity pool growth.## Why Choose Pumpfun?
By leveraging this smart contract, you gain access to a cutting-edge decentralized financial ecosystem tailored for scalability, efficiency, and innovation. It’s the ideal solution for managing tokens and liquidity in a dynamic market environment.
```
For inquiries, support, or collaboration opportunities, don’t hesitate to reach out. Let’s revolutionize decentralized finance together!
```## 👤 Contact Me
#### Discord: [@cashblaze127](https://discordapp.com/users/965772784653443215)
#### Twitter: [@cashblaze127](https://twitter.com/cashblaze127)
#### Telegram: [@cashblaze127](https://t.me/cashblaze127)