https://github.com/singatoshi/Solana-Pumpfun-Forking-SC
pumpfun smart contract forking
https://github.com/singatoshi/Solana-Pumpfun-Forking-SC
forking pumpfun rust solana
Last synced: 8 months ago
JSON representation
pumpfun smart contract forking
- Host: GitHub
- URL: https://github.com/singatoshi/Solana-Pumpfun-Forking-SC
- Owner: muffin819
- Created: 2024-10-23T09:38:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-14T23:54:08.000Z (over 1 year ago)
- Last Synced: 2024-12-15T00:24:38.944Z (over 1 year ago)
- Topics: forking, pumpfun, rust, solana
- Language: TypeScript
- Homepage:
- Size: 76.2 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pump.fun Smart Contract
## Overview
The **Pump.fun Smart Contract** is a Rust/Anchor smart contract designed for **Pump.fun**, facilitating various **decentralized finance (DeFi)** functionalities. This contract enables users to interact with **liquidity pools** and create **Raydium pools** on the Solana blockchain.
## Features
- **Add Virtual LP**
Allows users to add **virtual liquidity** to the Pump.fun platform, increasing pool liquidity **without requiring actual token deposits**. Useful for simulating and testing liquidity scenarios.
- **Remove LP**
Enables users to **remove liquidity** from the Pump.fun platform, reducing pool liquidity and allowing users to **withdraw LP tokens**.
- **Create Raydium Pool**
Allows users to create a new **Raydium pool**, facilitating **decentralized trading and liquidity provision**.
## Installation
1. **Clone the repository**
```sh
git clone https://github.com/muffin819/Solana-Pumpfun-SC.git
cd Solana-Pumpfun-SC
```
2. **Install dependencies**
```sh
anchor build
```
3. **Deploy the contract**
```sh
anchor deploy
```
## Usage
To interact with the smart contract, you can use the **Anchor CLI** or integrate it into your **Solana dApp**.
Example: Calling the `add_virtual_lp` function
```rust
pub fn add_virtual_lp(ctx: Context, amount: u64) -> Result<()> {
let liquidity_pool = &mut ctx.accounts.liquidity_pool;
liquidity_pool.amount += amount;
Ok(())
}
```
## Contributing
Feel free to open an **issue** or submit a **pull request** if you have any suggestions or improvements!
## Contact
- **Telegram:** [dogewhiz](https://t.me/dogewhiz)
## License
This project is licensed under the **MIT License**.