Skip to content

Pumpfun Smart Contract simulates the approach of pumpfun bonding curve ( pump.fun + raydium cpi )

Notifications You must be signed in to change notification settings

EarthZetaOrg/solana-pump-fun-smart-contract

Repository files navigation

Pumpfun Smart Contract ⚓

Pump.fun smart contract that works just like pump.fun site, like pump.fun, this smart contract creates the pool on contract, and make users to buy and sell from the pool. And at some point, it can go to Raydium under some predefined condition

You can see the deployed the contract in devnet here https://solscan.io/account/5mdPUgyK9mqosLtqZvfpY5pcpCqQBWHuS3XoU34CrJK3?cluster=devnet

In here, you can see the creation transaction, buy and sell transaction and withdraw transaction

👋 Contact Me

Telegram: https://t.me/earthzeta

Telegram Discord

Feel free to contact me if you need any help.

Environement and Development ⚙️

  • For the one who want to clone the project, need to setup as following
    - anchor : v0.29.0
    - solana : v1.17.14
    - rustc : v1.75.0 
  • Here's IDL structure of original pump.fun and new forked pump.fun project I have completed
https://github.com/earthzetaorg/solana-pumpfun-smart-contract-forking/blob/main/target/deploy/bonding_curve.json 

https://github.com/earthzetaorg/solana-pumpfun-smart-contract-forking/blob/main/target/deploy/pump-fun-IDL_original.json

Recording of pumpfun smart contract test process

bonding.mp4

program address https://solscan.io/account/3CCu4f3hXKne4i5uE7DHkiA9o4oqeAAFBNxR3BfYLivX?cluster=devnet

config transaction https://solscan.io/tx/9977V82eQoGq1GLmcabizpLeVwtG6MjpEyDVvikG4J7VhcawwQ7uxEtJVumj1nCs5nsfDYTFRcRv4pvPyWRFh3a?cluster=devnet

token launch tx https://solscan.io/tx/2Yc9N9oDQKkh2U89i3r7ciBJEUfSWAeVTVvmrLKs15wfJg1kK4Ax1J8uBxuBSExcQApCQBMw8nzxXLQrE14Ghn61?cluster=devnet

swap tx https://solscan.io/tx/3z9puJ6Jcum1iQ9eA5q6hxoaVAKyKGkFFJuwqBjcrmgrA6xbpiLxwB5GDpD3cD7Wzuo48NViAZKKT9u72N6QSxPS?cluster=devnet

curve reach tx https://solscan.io/tx/2QtdKZrhYuwJtWrd7dhja8mnNqZSmR4qbpo9iSLnrhkZADF3zzm8DojYVisvVaiGAkgmoU4ocSyo65EewJkpjvNo?cluster=devnet

withdraw tx https://solscan.io/tx/21VnRkwjGSCgUJY4KUtaNf2Sc13BUpjXp8nCmMhUFn8PPFNMkFywJFY79ZzhdVhuQUwSjmhAbyuhQutamw8Fj27u?cluster=devnet

https://solscan.io/tx/5DunqPfmfuYs3cVDE7SowJ9F2jKtdq7t3E3yP5W63RBGgcoNdVPDQ72asotg7fjnEEFATfQuiwPRGc7xqvW3iF64?cluster=custom&customUrl=devnet

Raydium migration and other detailed code are reserved for private, you can contact me for more understanding about the project and other features