PrePumpPrePump/Docs

Documentation

Everything you need to know about PrePump.

Introduction

PrePump is a decentralized token presale platform built on Solana. Anyone can create a presale, collect SOL from the community, and once the presale ends the creator lists the token on Pump.fun — all on-chain, fully transparent.

Creators choose between two modes: HardCap (presale ends when a set SOL amount is reached, 1–85 SOL) or Time Based (presale ends at a specific date/time, max 85 SOL).

After listing, contributors claim tokens proportional to their share. No middlemen, no trust assumptions — everything is handled by the smart contract.

How It Works

  1. Create a presale — fill in the token name, symbol, image and social links. Choose a presale mode: HardCap or Time Based. Creating is free.
  2. Community buys in — anyone can contribute SOL. A 0.5% fee is taken from every contribution and sent to the PrePump treasury. The rest goes into the presale vault.
  3. Listing — in HardCap mode, listing triggers once the hardcap is reached. In Time Based mode, listing happens after the timer expires. The contract creates the token on Pump.fun and buys tokens with all collected SOL (minus Pump.fun fees & rent).
  4. Creator activates fee sharing — right after listing, the creator goes to Profile → My Tokens and clicks Get Fees. This sets up fee sharing so 98% of Pump.fun volume fees go to the creator.
  5. Contributors claim — after listing, go to Positions and claim your tokens. Your share is proportional to how much SOL you put in.

Presale Modes

HardCap
  • Creator sets a SOL target from 1 to 85 SOL
  • Presale ends when the hardcap is reached
  • If the hardcap is never reached, the token will not be listed
  • MCap estimate is based on the set hardcap
Time Based
  • Creator sets an end date & time (min 5 min from now)
  • Maximum cap is fixed at 85 SOL
  • Presale ends when the timer expires
  • If 85 SOL is collected before the timer ends, listing triggers immediately
  • MCap estimate updates based on current collected SOL

In both modes, your token share is calculated the same way: your SOL contribution divided by the total collected SOL, multiplied by the total tokens purchased on Pump.fun.

Fees

During Presale

PrePump fee: 0.5% — deducted from every buy transaction. If you send 1 SOL, 0.005 SOL goes to the PrePump treasury and 0.995 SOL goes into the presale vault.

Pump.fun fee: ~1% — taken by Pump.fun when the contract buys tokens during listing.

Rent reserve: ~0.006 SOL — a small amount is kept in the vault for Solana account rent.

After Listing (Pump.fun Volume Fees)

Once your token is listed on Pump.fun, trading generates volume-based fees. PrePump takes 2% of those fees, and the remaining 98% goes to the token creator.

To activate fee sharing, the creator must click Get Fees in their Profile → My Tokens section right after listing. This signs a one-time on-chain transaction that sets up the fee split.

Important: click Get Fees as soon as possible after listing. Until the fee sharing config is set up, Pump.fun volume fees are not directed to the creator.

Smart Contract

PrePump runs on a verified Solana program. All presale logic — contributions, fee collection, listing on Pump.fun, and token claims — is handled entirely on-chain.

Program ID

PREKWnqHDGVUDETfyXZQUSsFtGnfdf8mn8wfaVLsDnH

View on Solscan

Formulas

1. What the user receives

user_tokens = (user_sol / total_sol) * total_tokens

2. How many tokens the contract buys on Pump.fun

sol_in = total_sol - fees - rent_reserve

# roughly total_sol * 0.985

virtual_sol   = 30,000,000,000 # 30 SOL (Pump.fun constant)

virtual_token = 1,073,000,000,000,000 # 1.073B tokens (constant)

total_tokens = (sol_in * virtual_token) / (virtual_sol + sol_in)

3. Price per token

price_per_token = total_sol / total_tokens

Examples

HardCap mode — 85 SOL

sol_in ≈ 83 SOL (after PrePump 0.5% + Pump.fun ~1% + rent)

total_tokens = (83 × 1,073,000,000) / (30 + 83)

             = 89,059,000,000 / 113

             ≈ 788,133,628 tokens

price = 85 / 788,133,628 ≈ 0.000000108 SOL per token

HardCap mode — 10 SOL

sol_in ≈ 9.4 SOL (after fees + rent)

total_tokens = (9.4 × 1,073,000,000) / (30 + 9.4)

             ≈ 255,776,709 tokens

price = 10 / 255,776,709 ≈ 0.0000000391 SOL per token

Time Based mode — 42 SOL collected

# Timer expired, 42 SOL collected (max was 85)

sol_in ≈ 39.5 SOL (after fees + rent)

total_tokens = (39.5 × 1,073,000,000) / (30 + 39.5)

             ≈ 609,712,230 tokens

price = 42 / 609,712,230 ≈ 0.0000000689 SOL per token

Token Distribution

Your share is proportional to your SOL contribution relative to the total collected.

ContributionShareTokens
1 SOL1.18%~9.2M
10 SOL11.76%~91.8M
85 SOL100%~780M