3 min read Updated

How to create a public sale (presale)

The DAppCrypto launchpad runs a presale (IDO): the token owner sells tokens at a fixed price for the network coin, and after the sale the smart contract itself lists the token on a DEX and locks the liquidity. Participants know that the raised funds will not all go to the owner — the chosen share must go to liquidity.

How a sale works

  1. Creation

    The owner sets caps, prices and dates and deposits tokens for the sale and for liquidity.

  2. Sale

    Participants buy with the network coin within min/max limits, optionally after a whitelist-only phase.

  3. End

    If at least the soft cap is raised, the sale succeeds. Otherwise participants take their money back.

  4. Listing (Start Trade)

    The contract adds liquidity on the chosen DEX at the set price and locks LP tokens until the unlock date. The rest of the raise goes to the owner.

  5. Token claim

    Participants claim tokens at once or in parts if vesting is set.

TermMeaning
Soft capMinimum raise. Not reached — the sale fails and participants get refunds
Hard capMaximum raise. Buying stops after it
Min / Max buyMinimum and maximum purchase per participant
Presale rateTokens per 1 network coin in the presale
Listing rateTokens per 1 network coin on the DEX at listing
Liquidity, % of raisedShare of the raise that goes to liquidity (60–100%)
LP unlockUnlock date of the liquidity LP tokens
WhitelistSale only for listed addresses until a set time
VestingBought tokens are released in parts

Raise funds with a fair presaleLiquidity share and LP lock are enforced by the contract, not by promises.

Create a presale

Before you start

  • The token owner wallet. Only tokens created with DAppCrypto are supported.
  • Tokens for the sale and liquidity; the app calculates Total required.
  • Native coin for the service fee, gas and the sale pool creation.

Step-by-step

  1. Open the presale form

    Go to dappcrypto.github.io/?dpage=CreateLaunchpad.

  2. Connect the owner wallet and choose a network

    • Ethereum gas in ETH
    • BNB Smart Chain gas in BNB
    • Polygon gas in POL
    • BNB Smart Chain Testnet testnet · gas in tBNB
  3. Create the sale pool

    Enter Token address. If there is no sale pool yet, click Create Public Sale Pool and confirm.

  4. Fill in the Sale tab

    • Tokens for presale and liquidity.
    • Soft cap ≤ Hard cap; Min buy ≤ Max buy ≤ hard cap.
    • DEX listing price, % of presale — 120 means the DEX price is 20% above the presale price.
    • Liquidity, % of raised — 60 to 100%; DEX — exchange for listing.
    • Sale start, Sale finish, DEX listing (after finish) and LP unlock (after listing).
    • Whitelist sale with Whitelist ends; addresses are added on the sale page before start.
    • Vesting for buyers — First release, %, Cycle, minutes, Release each cycle, %.

    The Description tab holds the project info, logo and socials. Check Summary: rates, token amounts, Total required, coin to liquidity and to the owner at hard cap, and fees.

  5. Confirm in your wallet

    Click Create Public Sale: approve Total required tokens, then confirm creation with the service fee.

  6. Publish the sale

    The sale page (?dpage=LaunchpadDetails&LaunchpadPool=…) opens with a countdown, tokenomics and widget code. Share it.

Smart contracts

Sale pools are created by MultiLaunchpads; at listing, liquidity goes to the DEX router and LP tokens are locked in MultiLocks.

Launchpad factory (MultiLaunchpads)

Creates presale pools, auto-lists the token on a DEX and locks liquidity.

NetworkChain IDAddressVersion
Ethereum Mainnet10x8f3D15fC897145c8C6aBF6F3904b81A6437E81B6v1
Binance Smart Chain Mainnet560x8f3D15fC897145c8C6aBF6F3904b81A6437E81B6v1
Polygon Mainnet1370x8f3D15fC897145c8C6aBF6F3904b81A6437E81B6v1
BNB Smart Chain Testnet970x8f3D15fC897145c8C6aBF6F3904b81A6437E81B6v1

Lock pools factory (MultiLocks)

Creates a lock pool per token; holds locked tokens, LP tokens and vesting schedules.

NetworkChain IDAddressVersion
Ethereum Mainnet10x4BACbD98aB9A09a206cDF3864890643a5474e2d0v1
Binance Smart Chain Mainnet560x4BACbD98aB9A09a206cDF3864890643a5474e2d0v1
Polygon Mainnet1370x4BACbD98aB9A09a206cDF3864890643a5474e2d0v1
BNB Smart Chain Testnet970x4BACbD98aB9A09a206cDF3864890643a5474e2d0v1

Tips and common errors

  • Launchpad can only be created by the owner of the token / A public sale for this token has already been created.
  • Liquidity must be from 60 to 100%, Soft cap must not exceed hard cap, Max buy must not exceed hard cap — fix values.
  • Whitelist end must be between start and finish, Listing time must be after finish, LP unlock must be after listing — fix date order.
  • Do not distribute or sell tokens before listing. A holder could create the DEX pair first and break the listing.
  • Exclude the sale pool from token taxes, rewards and limits.
  • Sale parameters cannot be changed. Before start you can delete the sale and create it again.