An open API service indexing awesome lists of open source software.

https://github.com/earthskyorg/sui-pumpfun-smart-contract

SUI Pumpfun Smart Contract
https://github.com/earthskyorg/sui-pumpfun-smart-contract

bonding-curve launchpad liquidity-pool move pumpdotfun sui

Last synced: 4 months ago
JSON representation

SUI Pumpfun Smart Contract

Awesome Lists containing this project

README

          

# SUI Pump.fun Smart Contract

A Move smart contract implementation for pump.fun, providing functionality for virtual LP management, token creation, and Raydium Pool integration.

## Overview

The contract enables users to:
- Connect wallet and create tokens
- Manage token information and avatars
- Trade tokens through an automated bonding curve
- Migrate liquidity pools

## Core Components

### Key Structures
- `BondingCurve`: Manages token pairs and liquidity
- `Configurator`: Handles protocol parameters and fees
- `AdminCap`: Controls administrative functions

### Main Functions

```rust
public fun buy(bc: &mut BondingCurve, config: &mut Configurator, payment: coin::Coin,
amount: u64, ctx: &mut TxContext) : coin::Coin
```
Purchase tokens using SUI.

```rust
public fun sell(bc: &mut BondingCurve, config: &mut Configurator, tokens: coin::Coin,
amount: u64, ctx: &mut TxContext) : coin::Coin
```
Sell tokens back to the contract.

```rust
public fun list(config: &mut Configurator, treasury_cap: &mut coin::TreasuryCap,
metadata: &coin::CoinMetadata, payment: coin::Coin, /* ... */) : BondingCurve
```
Create and list a new token pair.

## Administration

Administrative functions allow updating:
- Listing fees
- Migration parameters
- Supply thresholds
- Virtual liquidity

### If you need some help, please contact me
## 🙋‍♂️ Cᴏɴᴛᴀᴄᴛ ᴍᴇ Oɴ ʜᴇʀᴇ: 👋 ##

Telegram: https://t.me/opensea712


Telegram
Discord

## Conclusion

This smart contract provides a robust foundation for decentralized token creation and trading on the SUI network. With its automated bonding curve mechanism and virtual LP management, it offers an efficient and secure platform for token operations.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.