Skip to content

Latest commit

 

History

History
124 lines (82 loc) · 4.68 KB

File metadata and controls

124 lines (82 loc) · 4.68 KB

Pumpfun Smart Contract - TOKEN2022 Integration

Overview

The Pump.fun Smart Contract integrates with TOKEN2022, the latest upgrade to the SPL token program on Solana. TOKEN2022 adds new features like programmatic governance, custom fees, and tax handling, making it ideal for projects that need flexible token mechanics and DeFi capabilities.

Why TOKEN2022?

TOKEN2022 improves on the original SPL token standard, adding more functionality and flexibility for tokenized assets. Key benefits include:

  • Enhanced Tokenomics – Support for built-in tax mechanisms, royalties, and custom transaction fees.
  • Improved Governance – On-chain governance capabilities allow seamless protocol upgrades and community-driven decision-making.
  • Expanded Flexibility – Developers can create tokens with advanced behavior, optimizing interactions within decentralized applications.

Development Environment

Devnet Program Addresses

The following program addresses correspond to the Pumpfun smart contract’s integration with Raydium’s automated market maker (AMM) protocols.

Pumpfun + Raydium CLMM

Fu6WXgEQeVBrsvHbwh8vStwLxjA12E9KYjPzXnJ1sQC7

Pumpfun + Raydium CPMM

GY4gideNhYWJLkgxDW7q9hS6U2SrKb9AmSUbJPsWhEKB

Version Features

Version 2.0.0

Global Configuration

  • Set global settings from backend
  • Set fee account and swap protocol fee point
  • Configure bonding curve upper limitation
  • Configure virtual SOL & token reserve settings
  • Set tax fee and max tax from backend

Create Pool

  • Launch Token2022 on smart contract
  • Create pool & launch token fee
  • Disable mint & freeze authority on contract

Liquidity Management

  • Add liquidity with virtual reserve
  • Buy/Sell using linear bonding curve
  • Buy/Sell protocol fee implementation
  • Remove liquidity to temporary operational wallet

Migration to Raydium CLMM

  • Proxy initialize
  • Proxy open position

Version 2.1.0

Global Configuration

  • Set global settings from backend
  • Set fee account and swap protocol fee point
  • Configure bonding curve upper limitation
  • Configure virtual SOL & token reserve settings
  • Set tax fee and max tax from backend

Create Pool

  • Launch Token2022 on smart contract
  • Create pool & launch token fee
  • Disable mint & freeze authority on contract

Liquidity Management

  • Add liquidity with virtual reserve
  • Buy/Sell using linear bonding curve
  • Buy/Sell protocol fee implementation
  • Remove liquidity to temporary operational wallet

Migration to Raydium CPMM

  • Proxy initialize

Operational Guide

1. Initializing a Token Pool

Creating a liquidity pool on Pumpfun involves minting TOKEN2022 tokens and establishing a pool to facilitate token swaps.

2. Buying TOKEN2022

Users can purchase TOKEN2022 tokens via Pumpfun, where transaction fees apply for tax and platform-related charges.

3. Selling TOKEN2022

TOKEN2022 tokens can be sold on Pumpfun, with the sale process incorporating associated transaction fees.

4. Migrating Liquidity to Raydium CLMM

Liquidity can be migrated from Pumpfun to Raydium’s concentrated liquidity market maker (CLMM) for improved capital efficiency.

5. Migrating Liquidity to Raydium CPMM

For projects that prefer Raydium’s constant product market maker (CPMM), liquidity migration is possible through a dedicated transaction.

Conclusion

TOKEN2022’s integration with Pumpfun introduces new possibilities for decentralized applications on Solana, enabling improved tokenomics and governance structures. By leveraging Pumpfun’s liquidity management and Raydium’s AMM protocols, developers can create more efficient and versatile financial instruments.

For further inquiries, feel free to open an issue or reach out via Telegram.