createSaleWithNewToken transaction
that mints your token and opens the sale in one shot.
The lifecycle
Create
One transaction mints a fixed-supply token, funds the sale + LP allocation into the sale contract,
and routes the team remainder. The sale opens at your
startsAt.Sale
Buyers commit the quote asset, first-come-first-served, until
endsAt or the hard cap. Phases,
whitelists, and per-wallet caps gate who buys at what price.Finalize
Anyone can finalize once the sale ends above the soft cap. Below it, the sale cancels and
buyers refund.
What you control vs what the platform controls
HyperPad deliberately keeps the discretionary, sale-manipulating levers on the platform side so a project can’t rug a live sale. You own the design; the platform owns the guardrails.You configure
Token identity & supply · pricing mode · quote asset · caps & window · whitelist · multi-phase
schedule · buyer vesting · anti-snipe · LP split, lock length & first-buy
The platform fixes
Always-on locked V3 LP · burn-unsold policy · V3 pool tuning (beyond first-buy) · all fees ·
referrals · emergency break-glass (cancel / escape)
The levers, at a glance
| Area | You set | Page |
|---|---|---|
| Token & supply | name, symbol, decimals, supply | Token & supply |
| Pricing | fixed-rate or oracle/USD, quote asset | Pricing & caps |
| Caps | soft/hard cap, min/max buy, window | Pricing & caps |
| Phases & whitelist | private→public tiers, Merkle gating | Phases & whitelist |
| Vesting | buyer unlock schedule | Vesting |
| Anti-snipe | per-wallet cap window at launch | Anti-snipe |
| Liquidity | LP %, lock length, first buy | Liquidity & fees |
A few capabilities live in the contracts but aren’t in the create form today — most notably
team vesting (the UI sends the team remainder to you instantly). Those are called out on each page
and are only reachable by calling
createSaleWithNewToken directly.