{"id":25864800,"url":"https://github.com/0xsabonis/token2022-pumpfun-smart-contract","last_synced_at":"2025-09-05T19:43:58.101Z","repository":{"id":279930207,"uuid":"940467127","full_name":"0xSabonis/token2022-pumpfun-smart-contract","owner":"0xSabonis","description":"Pump.fun Smart Contract – A Solana smart contract utilizing the latest SPL Token standard, Token-2022, to power Pump.fun's ecosystem.","archived":false,"fork":false,"pushed_at":"2025-02-28T08:54:55.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T15:32:06.921Z","etag":null,"topics":["amm","defi","liquidity","memecoin","rust","smart-contract","solana","token-2022","trading"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xSabonis.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-28T08:21:38.000Z","updated_at":"2025-02-28T08:54:58.000Z","dependencies_parsed_at":"2025-02-28T15:42:35.119Z","dependency_job_id":null,"html_url":"https://github.com/0xSabonis/token2022-pumpfun-smart-contract","commit_stats":null,"previous_names":["0xsabonis/token2022-pumpfun-smart-contract"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xSabonis/token2022-pumpfun-smart-contract","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSabonis%2Ftoken2022-pumpfun-smart-contract","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSabonis%2Ftoken2022-pumpfun-smart-contract/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSabonis%2Ftoken2022-pumpfun-smart-contract/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSabonis%2Ftoken2022-pumpfun-smart-contract/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xSabonis","download_url":"https://codeload.github.com/0xSabonis/token2022-pumpfun-smart-contract/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSabonis%2Ftoken2022-pumpfun-smart-contract/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273812368,"owners_count":25172878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amm","defi","liquidity","memecoin","rust","smart-contract","solana","token-2022","trading"],"created_at":"2025-03-02T01:24:02.838Z","updated_at":"2025-09-05T19:43:58.055Z","avatar_url":"https://github.com/0xSabonis.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pumpfun Smart Contract - TOKEN2022 Integration\n\n## Overview\n\nThe 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.\n\n\n## Why TOKEN2022?\n\nTOKEN2022 improves on the original SPL token standard, adding more functionality and flexibility for tokenized assets. Key benefits include:\n\n- **Enhanced Tokenomics** – Support for built-in tax mechanisms, royalties, and custom transaction fees.\n- **Improved Governance** – On-chain governance capabilities allow seamless protocol upgrades and community-driven decision-making.\n- **Expanded Flexibility** – Developers can create tokens with advanced behavior, optimizing interactions within decentralized applications.\n\n## Development Environment\n\n### Devnet Program Addresses\nThe following program addresses correspond to the Pumpfun smart contract’s integration with Raydium’s automated market maker (AMM) protocols.\n\n#### Pumpfun + Raydium CLMM\n```\nFu6WXgEQeVBrsvHbwh8vStwLxjA12E9KYjPzXnJ1sQC7\n```\n\n#### Pumpfun + Raydium CPMM\n```\nGY4gideNhYWJLkgxDW7q9hS6U2SrKb9AmSUbJPsWhEKB\n```\n\n## Version Features\n\n### Version 2.0.0\n\n**Global Configuration**\n- Set global settings from backend\n- Set fee account and swap protocol fee point\n- Configure bonding curve upper limitation\n- Configure virtual SOL \u0026 token reserve settings\n- Set tax fee and max tax from backend\n\n**Create Pool**\n- Launch Token2022 on smart contract\n- Create pool \u0026 launch token fee\n- Disable mint \u0026 freeze authority on contract\n\n**Liquidity Management**\n- Add liquidity with virtual reserve\n- Buy/Sell using linear bonding curve\n- Buy/Sell protocol fee implementation\n- Remove liquidity to temporary operational wallet\n\n**Migration to Raydium CLMM**\n- Proxy initialize\n- Proxy open position\n\n### Version 2.1.0\n\n**Global Configuration**\n- Set global settings from backend\n- Set fee account and swap protocol fee point\n- Configure bonding curve upper limitation\n- Configure virtual SOL \u0026 token reserve settings\n- Set tax fee and max tax from backend\n\n**Create Pool**\n- Launch Token2022 on smart contract\n- Create pool \u0026 launch token fee\n- Disable mint \u0026 freeze authority on contract\n\n**Liquidity Management**\n- Add liquidity with virtual reserve\n- Buy/Sell using linear bonding curve\n- Buy/Sell protocol fee implementation\n- Remove liquidity to temporary operational wallet\n\n**Migration to Raydium CPMM**\n- Proxy initialize\n\n## Operational Guide\n\n### 1. Initializing a Token Pool\n\nCreating a liquidity pool on Pumpfun involves minting TOKEN2022 tokens and establishing a pool to facilitate token swaps.\n\n- **Pool Creation Transaction:**  \n  [View Transaction](https://solana.fm/tx/5QYCTaGHaareH5CoCMDeDCSxq785BfdMhKmbeKWizq7uAeVptkAuyY8N1QSc78N8YPKLi3fXTZxAfPMdzy76jT25?cluster=devnet-solana)\n\n### 2. Buying TOKEN2022\n\nUsers can purchase TOKEN2022 tokens via Pumpfun, where transaction fees apply for tax and platform-related charges.\n\n- **Purchase Transaction:**  \n  [View Transaction](https://solana.fm/tx/5unyZ9MekJeE8EULD4x9JKiNNCShfMnpk5edJzLpEMB6AY9g449an1y5hWmHkkJ8hwGCfpaVnb6TWL3SeqH14EYx?cluster=devnet-solana)\n\n### 3. Selling TOKEN2022\n\nTOKEN2022 tokens can be sold on Pumpfun, with the sale process incorporating associated transaction fees.\n\n- **Sale Transaction:**  \n  [View Transaction](https://solana.fm/tx/2Wt2YhkU5Bj6kY9hgSLaPZ6AkjxsRZrijax59f9kRQo9fD61SkjhXPd587RTt9SDDQ4cdYNMySMBKZ5L5TJqYmyp?cluster=devnet-solana)\n\n### 4. Migrating Liquidity to Raydium CLMM\n\nLiquidity can be migrated from Pumpfun to Raydium’s concentrated liquidity market maker (CLMM) for improved capital efficiency.\n\n- **Liquidity Removal Transaction:**  \n  [View Transaction](https://solana.fm/tx/uX492XUVW7yEtxyxSyhqDm7jngB7xtr23Sh29WhVfHR88JuSDwyC387XDE69k4Q8dzPbfYGDeX2hMHsRMQg2LLH?cluster=devnet-solana)\n\n### 5. Migrating Liquidity to Raydium CPMM\n\nFor projects that prefer Raydium’s constant product market maker (CPMM), liquidity migration is possible through a dedicated transaction.\n\n- **Migration Transaction:**  \n  [View Transaction](https://solana.fm/tx/5iHdBwV2d9RsqmawRuUSRiJfb5k22ooZTpCJhigBiXpYrbep7pK4rYKyq2MQgtiSYYTzsDB1wKtrmtx45K93D7p5?cluster=devnet-solana)\n\n## Conclusion\n\nTOKEN2022’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.\n\nFor further inquiries, feel free to open an issue or reach out via Telegram.\n\n- **Telegram Support:** [Sabonis](https://t.me/dogewhiz)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsabonis%2Ftoken2022-pumpfun-smart-contract","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xsabonis%2Ftoken2022-pumpfun-smart-contract","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsabonis%2Ftoken2022-pumpfun-smart-contract/lists"}