Configuration
This page lists everything a launchpad and a launch can set, with the allowed range and the default of each.
How settings work
Three parties choose, each inside the one before:
| Who | Decides | With |
|---|---|---|
| The contracts | The widest range of every setting. Bankr sets it per chain. | Read it with settings.limits(). |
| Your launchpad | A range and a default inside that, and a switch for each feature. | launchpads.configure. |
| A launch | A value inside your range. What it leaves out takes your default. | The options of client.launch. |
The result is written into the coin at launch. No later change reaches a coin that is already live.
How to read the tables:
- Limit is the widest range a launchpad can set.
- A new launchpad is what your launchpad starts with when you register it. You can change every one.
- Default is what a launch gets when it names nothing.
The figures are Base's. settings.limits() and settings.template() read them live on any chain.
| Unit | 100% is | 1% is | Used for | Convert from percent |
|---|---|---|---|---|
| Pips | 1,000,000 | 10,000 | Fee rates | percentToPips("1.75") |
| Bps | 10,000 | 100 | Shares | percentToBps("50") |
The samples on this page use client, settings, launchpads, send, operator and launchpadId from Set up a launchpad. launch stands for a launch on your launchpad:
import type { LaunchInput } from "@bankr/launch-sdk";
const launch = {
name: "Acme Coin",
symbol: "ACME",
metadataUri: "ipfs://your-metadata-cid",
launcher: operator.address,
launchpadId,
} satisfies LaunchInput<"base">;
Fees and snipe protection
A coin's fee has a steady rate, the trading fee. It can open higher and fall to the trading fee in a straight line. That opening fee is snipe protection: whoever buys in the first seconds pays it.
| Launch option | What it sets | Limit | A new launchpad allows | Default |
|---|---|---|---|---|
schedule.steadyPips | The trading fee, for buys and sells | 0.05% to under 100% | 0.05% to 10% | 0.05% |
schedule.startPips | The fee the coin opens at | Up to under 100% | Up to 80% | None |
schedule.decaySecs | Seconds until it reaches the trading fee | 0 to 120 | 0 to 120 | 0 |
fees: { buy, sell } | A different schedule for buys and for sells | The same, per side | The same, per side |
On your launchpad, the knobs are steadyPips, startPips and decaySecs:
await send(
await launchpads.setKnobs(launchpadId, {
// A launch picks a trading fee from 1% to 3%, and gets 1% when it names none.
steadyPips: {
min: percentToPips("1"),
max: percentToPips("3"),
default: percentToPips("1"),
},
// Every coin opens at 50% by default, falling to its trading fee in 20 seconds.
startPips: { default: percentToPips("50") },
decaySecs: { default: 20 },
}),
);
On a launch:
await client.launch({
...launch,
// Opens at 40% and falls to 2% over 30 seconds, for buys and sells alike.
schedule: {
startPips: percentToPips("40"),
steadyPips: percentToPips("2"),
decaySecs: 30,
},
});
await client.launch({
...launch,
symbol: "ACME2",
// Buys are protected, sells are flat.
fees: {
buy: { startPips: 400_000, steadyPips: 10_000, decaySecs: 30 },
sell: { startPips: 10_000, steadyPips: 10_000, decaySecs: 0 },
},
});
- Set
scheduleorfees, not both. A launch that names neither gets the launchpad's default. - A flat fee is a schedule whose
startPipsequals itssteadyPips, withdecaySecs: 0. - Everyone who trades in the opening window pays the opening fee, people and bots alike.
- A first buy inside the launch pays the trading fee, not the opening fee.
- A schedule outside the launchpad's range throws
FEE_OUT_OF_BOUNDS, anderr.detailstates the range.
For a rule that lasts minutes or hours, such as a sniper tax, use an extension.
Fee shares and payees
Each trading fee splits in a fixed order. Fees walks through it with numbers. These are the shares you set:
| Setting | Set by | What it is | Limit | A new launchpad allows | Default |
|---|---|---|---|---|---|
| Payees | Launchpad | Up to 4 wallets and their shares of each fee after Bankr's cut | 100% total | 100% total | None |
referrerBps | Launch | A referrer's part of each fee, when a trade names one | 0% to 100% | Off | 0 |
holderShareBps | Launch | The holders' part of the creator's own take | 0% to 100% | 0% to 100% | See note |
autoLpBps | Launch | The part of the creator side added to the pool's locked liquidity | 0% to 100% | 0% to 100% | 30% |
buybackBps | Launch | The part of the creator side that buys the coin back and burns it | 0% to 100% | 0% to 100% | 0 |
feeRecipients | Launch | Who receives the creator's take: 1 to 10 wallets with shares | 1 to 10 | 1 to 10 | Launcher |
Note: a new launchpad sends 11.67% of the creator side to holders by default.
Bankr's cut is not a setting of yours. It is 10% of each fee and never less than 0.025% of the trade, and half of it goes to the coin's holders.
await client.launch({
...launch,
schedule: {
startPips: percentToPips("1"),
steadyPips: percentToPips("1"),
decaySecs: 0,
},
autoLpBps: percentToBps("30"), // 30% of the creator side compounds into locked liquidity
buybackBps: percentToBps("20"), // 20% buys the coin back and burns it
holderShareBps: percentToBps("25"), // a quarter of the creator's own take goes to the coin's holders
// Three wallets split what is left. The shares add up to 100%.
feeRecipients: [
{ recipient: operator.address, shareBps: percentToBps("50") },
{
recipient: "0x1111111111111111111111111111111111111111",
shareBps: percentToBps("30"),
},
{
recipient: "0x2222222222222222222222222222222222222222",
shareBps: percentToBps("20"),
},
],
});
- Payees are set on the launchpad, not on a launch. See Payees.
holderShareBpsis a share of what the creator keeps after auto-LP and any buyback. The launchpad'sholdersBpsknob is the same share measured against the whole creator side. With 30% auto-LP,holderShareBps: 2500is 17.5% of the creator side, and the default 11.67% equalsholderShareBps: 1668.- A buyback needs enough fee. With a buyback share, the buy fee plus the sell fee must be at least 1%, counted after what the launchpad's payees and any referrer take. A launch under that is refused with
FEE_OUT_OF_BOUNDS. feeRecipient: addressnames a single recipient. SetfeeRecipientorfeeRecipients, not both.- A fee recipient that is a contract must be able to claim. A wallet, a Safe that has restricted its claims and an EIP-7702 wallet need nothing more. Any other contract needs
allowContractFeeRecipient: trueon the launch.
To switch a share off for every coin, set its knob's max to 0. To require it, set its min above 0:
await send(
await launchpads.setKnobs(launchpadId, {
autoLpBps: { max: 5_000 }, // a coin compounds at most half of its creator side
referrerBps: { max: 2_000 }, // a launch may give referrers up to 20% of each fee
}),
);
A coin that allows referrers pays one when a trade names it in its hook data: encodeHookData({ referrer }).
Supply and the curve
| Launch option | What it sets | Limit | A new launchpad allows | Default |
|---|---|---|---|---|
supply | The total supply, in base units (18 decimals) | 1 token to 10^18 | 1 token to 100 billion | 100 billion |
curve | Where the sale's liquidity sits in the price range | 1 to 8 bands | The three built-in curves | "runner_v1" |
curve.startFdvUsd | The whole supply's value at the start, in US dollars | Any | $2,000 to $125,000,000 | $10,000 |
The supply is minted once at launch. It never changes.
A curve is a list of bands. Each band covers a stretch of price and holds a share of the sale. As buyers push the price up, the pool sells one band after the next.
| Built-in curve | Starts at | Bands, outward from the start price |
|---|---|---|
"runner_v1" (the default) | $10,000 | 3% of the sale over the first 6,800 ticks, 95% over the next 110,000, 2% above |
"degen" | $2,500 | 3% over the first 20,600 ticks, 95% over the next 110,000, 2% above |
"thin_topside" | $10,000 | Eight bands that sell more of the supply early. BUILT_IN_CURVES has the figures |
One tick is a 0.01% step in price. 6,932 ticks doubles the price, and 23,027 ticks multiplies it by 10.
await client.launch({
...launch,
supply: 1_000_000_000n * 10n ** 18n, // one billion tokens
curve: "degen",
});
A launch can define its own bands on a launchpad that allows them:
// Once, on your launchpad: allow any bands that pass the rules.
await send(await launchpads.setCurveAllowed(launchpadId, "any", true));
await client.launch({
...launch,
curve: {
startFdvUsd: 10_000,
bands: [
{ widthTicks: 6_800, shareBps: 304 }, // $10K to about $20K: 3.04% of the sale
{ widthTicks: 110_000, shareBps: 9_658 }, // on to about $1.2B: 96.58%
{ widthTicks: 0, shareBps: 38 }, // everything above: 0.38%
],
},
});
| Band field | Bounds |
|---|---|
widthTicks | A multiple of 200, at least 200. The last band has width 0 and runs to the top of the pool's range. |
shareBps | At least 1. The shares add up to 10,000. |
The contracts hold custom bands to three rules:
- No thin band. Every band holds at least a tenth of the liquidity the whole sale would have as one flat band.
- No wall. No band holds more than twice that flat liquidity: about 2% of the sale per 200 ticks.
- No parked supply. At least 90% of the sale sells within 120,000 ticks of the start.
A coin with auto-LP or a buyback has one more: liquidity may rise only near the start, so a band further out holds no more than the band before it.
client.plan checks the rules before anything is signed. A broken rule throws INVALID_PARAMS, and err.detail names the band and says what to change. curve: { marketCaps: [...] } takes the same bands as market-cap ranges, and curveFromMarketCaps converts.
Quote tokens
A coin trades against a quote token. Its price is in the quote token, and every fee is paid in it, on buys and on sells.
| Launch option | What it sets | A new launchpad allows | Default |
|---|---|---|---|
quote | "WETH", "USDC" or any ERC-20's address | Every token Bankr lists, and any other ERC-20 | WETH |
startFdv | The whole supply's value at the start, in the quote's base units | Required on a token Bankr does not list | From curve.startFdvUsd |
await client.launch({ ...launch, quote: "USDC" });
Bankr lists the quote tokens it can price. settings.quotes() reads the list, and settings.padQuote(launchpadId, token) says whether a launch on your launchpad may pair with a token.
A launch can pair with a token Bankr does not list, where the launchpad's unlistedQuotes switch is on. These things differ:
| What | On a token Bankr does not list |
|---|---|
| The start price | You set it. Pass startFdv. |
| Auto-LP | Needs a floor and a cap in that token, from the launchpad or the launch. Without them, set autoLpBps: 0. |
| Holder rewards | Paid in the quote token. Nothing converts them to BNKR. |
| A token that misbehaves | A token that pauses or blocks transfers stops that coin's trades and payouts. A fee-on-transfer token cannot trade at all. |
await client.launch({
...launch,
quote: "0x1111111111111111111111111111111111111111", // any ERC-20
startFdv: 1_000_000n * 10n ** 18n, // the whole supply is worth 1M of an 18-decimal token at the start
autoLpBps: 0,
});
Quote tokens on the launchpad page shows how to list the tokens your launchpad takes.
Vesting and allocations
A launch can set part of the supply aside instead of selling it in the pool.
| Launch option | What it sets | Limit | A new launchpad allows | Default |
|---|---|---|---|---|
vesting.bps | The creator's share of the supply | 0% to 99.99% | 0% to 50% | 15% |
vesting.cliffSeconds | Seconds before any of it unlocks | Any | Fixed at 30 days | 30 days |
vesting.durationSeconds | Seconds until all of it has unlocked | Any | Fixed at 365 days | 365 days |
vesting.recipient | Who receives it | Any wallet | The launcher | |
allocations | Slices of the supply for other wallets, each on its own schedule | With the creator's share, at most the vestBps top | Allowed. Any schedule. | None |
vestToHolders | A share of the supply released over time to the coin's holders | 0% to 99.99% | Up to 50%, over 1 to 365 days | None |
Everything vested together, the creator's share, the allocations and a vest to holders, is at most 50% of the supply on a new launchpad.
const supply = 100_000_000_000n * 10n ** 18n;
await client.launch({
...launch,
vesting: { bps: percentToBps("10") }, // 10% to the creator, on the launchpad's schedule
allocations: [
// 2% of the supply to a partner, unlocked when trading starts.
{
recipient: "0x1111111111111111111111111111111111111111",
amount: (supply * 2n) / 100n,
},
// 5% to the team: locked for 30 days, fully unlocked after a year.
{
recipient: "0x2222222222222222222222222222222222222222",
amount: (supply * 5n) / 100n,
cliffSeconds: 30 * 86_400,
durationSeconds: 365 * 86_400,
},
],
vestToHolders: { bps: 500, cliffSeconds: 0, durationSeconds: 30 * 86_400 }, // 5% to holders over 30 days
});
- Nothing unlocks before the cliff. From the cliff it unlocks in a straight line, and all of it has unlocked at
durationSeconds. - An allocation with no schedule is unlocked when trading starts.
- No creator vesting:
vesting: { bps: 0 }. - Each allocation adds about 129,400 gas to the launch. A launch must fit in one transaction, so on Base a heavy launch holds about 18 on a launchpad with one payee, fewer with more payees.
A new launchpad fixes the creator's schedule. To let launches choose, widen the range on your launchpad:
await send(
await launchpads.setKnobs(launchpadId, {
vestCliffSecs: { min: 0 }, // down to no cliff
vestSecs: { min: 0 }, // down to unlocked when trading starts
}),
);
await client.launch({
...launch,
vesting: {
bps: percentToBps("10"),
cliffSeconds: 7 * 86_400, // nothing for a week
durationSeconds: 90 * 86_400, // fully unlocked on day 90
},
});
Each recipient releases what has unlocked. client.vesting.get(token) reads every schedule, and client.vesting.buildRelease(token, account) builds the release.
Wallet cap
For a set time after trading starts, no wallet can hold more than a set share of the supply.
| Launch option | What it sets | Limit | A new launchpad allows | Default |
|---|---|---|---|---|
walletCap.bps | The cap's size, in bps of supply | 0% to 100% | Fixed at 2% | 2% |
walletCap.seconds | The cap's length | Any | Fixed at 24 hours | 24 hours |
walletCap: false | No cap on this coin | Not allowed | ||
capExclusions | More wallets exempt from the cap | Allowed | The chain's swap routers |
A new launchpad fixes the cap. To let launches choose, open a range:
await send(
await launchpads.setKnobs(launchpadId, {
capBps: { min: 50, max: 500, default: 200 }, // 0.5% to 5% of supply
capSecs: { min: 0, max: 7 * 86_400, default: 86_400 }, // up to 7 days. 0 allows no cap
}),
);
await client.launch({
...launch,
walletCap: { bps: 100, seconds: 3_600 }, // 1% of supply per wallet for the first hour
});
await client.launch({ ...launch, symbol: "NOCAP", walletCap: false });
- A transfer that would take a wallet over the cap reverts. That holds for buys and for plain transfers.
- It ends by itself. After its length nothing is checked.
- Routers are exempt. The contracts that common swap aggregators settle through are exempt by default, so purchases through them do not fail.
- No cap on any coin:
capSecs: { min: 0, max: 0, default: 0 }on your launchpad. - The cap controller is one account that may end a coin's cap early. It can never extend one.
launchpads.setCapController(id, account)names it, andnullmeans nobody.
First buy
A first buy is a buy the launcher makes inside the launch transaction, before anyone else can trade.
| Launch option | What it sets | Limit | A new launchpad allows | Default |
|---|---|---|---|---|
devBuy.amount | What the launcher pays, in the quote's base units | Up to 100% of supply bought | Up to 2% of supply bought | None |
devBuy.slippageBps | How far the fill may be from the plan | 200 |
import { parseEther } from "viem";
await client.launch({
...launch,
devBuy: { amount: parseEther("0.01") }, // 0.01 ETH of the coin for the launcher
});
- On WETH it is paid in ETH with the launch. On any other quote token,
client.launchsends one approval first. - It sits under the wallet cap. The launcher is a wallet like any other.
- Your launchpad sets the most it may buy with the
devBuyMaxBpsknob, or switches first buys off with thedevBuyswitch.
Metadata
| Launch option | What it sets | Limit | Default |
|---|---|---|---|
name | The token's name. It never changes. | 1 to 100 characters | Required |
symbol | The token's symbol. It never changes. | 1 to 20 characters | Required |
metadataUri | A link to the token's metadata JSON: image, description | 2,048 bytes | Empty |
metadataAdmin | One account that may replace the link after launch | Any address | Nobody |
The contracts store the link as written and never read the JSON it points to. Host or pin the JSON before you launch. Bankr's own metadata uses these fields:
| Field | What it holds |
|---|---|
name | The token's name. |
symbol | The token's symbol. |
description | A short description. |
image | A link to the token's image, such as an ipfs:// link. |
external_url | The project's website. |
tweet_url | A post on X about the launch. |
By default the link is fixed from the token's first block. Name a metadata admin when the image or description may change:
const { token } = await client.launch({
...launch,
metadataAdmin: operator.address,
});
// Later, sent by the admin:
await send(
await client.metadataAdmin.buildSetUri(
token,
operator.address,
"ipfs://your-new-metadata-cid",
),
);
The admin can replace the link, hand the role on (buildTransfer, then buildAccept by the new admin) or give it up for good (buildRenounce). It can do nothing else: not the name, the symbol, the supply or the fees. Your launchpad's metadataAdmin switch allows the option.
Holder rewards
Every coin pays its holders. Part of each fee is set aside for the wallets that hold the coin, by balance. There is nothing to stake.
| Source | Size | Paid in | Set by |
|---|---|---|---|
| Half of Bankr's cut of every fee | 5% of each fee | BNKR where the quote token has a route to it, otherwise the quote token | Always on |
holderShareBps | A new launchpad's default is 11.67% of the creator side | The quote token | The launch |
vestToHolders | A slice of the supply, released over time | The coin itself | The launch |
How rewards reach holders:
| Launch option | What it sets | Limit | A new launchpad allows | Default |
|---|---|---|---|---|
holderStream.seconds | How long each amount that arrives streams out to holders | 1 to 30 days | Fixed at 1 day | 1 day |
holderStream.restartBps | The share of what is still streaming that a top-up must reach to restart the clock | 0.01% to 100% | Fixed at 10% | 10% |
await client.launch({
...launch,
holderShareBps: percentToBps("50"), // half of the creator's own take goes to holders
});
Fees explains what holders are paid in and how they claim.
Auto-LP and buyback timing
Auto-LP fees wait in the contracts as a backlog. A compound is one move of part of that backlog into the pool's locked liquidity, inside an ordinary trade. A buyback fill works the same way. No service has to run for either. Their shares are in Fee shares. These options set when they run:
| Launch option | What it sets | A new launchpad |
|---|---|---|
autoLp.intervalSeconds | The least time between two compounds | Fixed at 300 seconds |
autoLp.shareBps | The most of the backlog one compound places | Fixed at 25% |
autoLp.deviationTicks | How far the price may sit from its average for a compound to run | Fixed at 488 ticks |
autoLp.band | { halfWidthTicks, gridTicks }: where the liquidity is placed | Fixed at 6,800 and 2,000 ticks |
autoLp.floor, autoLp.cap | The backlog a compound needs, and the most one places | The quote token's: 0.1 and 0.2 WETH, or 250 and 500 USDC |
buyback.intervalSeconds | The least time between two buyback fills | Fixed at 300 seconds |
buyback.retrySeconds | The wait after a fill that could not run | Fixed at 60 seconds |
A new launchpad fixes each at one value. Open a range with the knob of the same row in Every knob. A launch names its own floor and cap only where the launchpad's launchCompoundAmounts switch is on.
An option for a feature the launch leaves off is refused with OPTION_FOR_FEATURE_OFF, never dropped: buyback.intervalSeconds with no buyback share, or autoLp.band with autoLpBps: 0.
Scheduled start
A launch can create its token and pool now and open trading later. Until the start, swaps revert and no wallet can move the token.
| Launch option | What it sets | Limit | A new launchpad allows | Default |
|---|---|---|---|---|
startTime | When trading opens: a Date or Unix seconds | 7 days ahead | Up to 7 days ahead | At launch |
const { tradingStart } = await client.launch({
...launch,
startTime: new Date(Date.now() + 60 * 60 * 1000), // trading opens in one hour
});
console.log(tradingStart); // the start, in Unix seconds
- Everything on a clock counts from the start: the opening fee, the wallet cap, every vesting schedule and an extension's window.
- Nobody can move the start once the launch lands.
- A first buy inside the launch still works. The launcher receives the tokens and cannot move them before the start.
client.tradingStatus(token)reads whether a coin trades yet.
Your launchpad limits how far ahead a start may be with the startDelaySecs knob. A max of 0 allows no scheduled start.
Extensions
An extension gives a coin its own trading rule, such as a sniper tax. Extensions covers the option. Your launchpad decides which a launch may use:
| Setting | What it does | A new launchpad |
|---|---|---|
extPresets switch | Allows the built-in extensions | On |
setPresetLimits | Allows or refuses one built-in extension, and sets its longest window | Each allowed |
extQuoteOnly, extCallsOut switches | Allow custom extension code | Off |
extMaxPips knob | The most an extension, built-in or custom, may add to a fee | Up to 10% |
feeCeilingPips knob | The most the coin's fee and the extension's fee reach together | Fixed at 10% |
Takeover
A takeover moves the creator's share of an abandoned coin's future fees to a new recipient, after a public notice of 48 hours. An authority that Bankr appoints carries it out.
It is off on your launchpad. Only you can switch it on, and only for coins launched afterwards:
await send(await launchpads.setTakeover(launchpadId, true));
A coin launched while it is off can never be taken over. A takeover never touches money already earned, your payees or any other term of the coin.
Every launchpad setting
launchpads.configure(id, { knobs, switches }) changes any number of these in one transaction. Set up a launchpad shows how.
Every knob
A knob is { min, max, default }. Fees are in pips: 10,000 pips is 1%. Shares are in bps: 100 bps is 1%.
| Knob | What it sets | A new launchpad's range | Default | Limit | A launch names it with |
|---|---|---|---|---|---|
steadyPips | The trading fee, each direction, once any opening fee has decayed (pips) | 500 to 100,000 | 500 | 500 to 999,999 | fees, schedule |
startPips | The fee a launch may open at before it decays (pips) | 0 to 800,000 | 0 | 0 to 999,999 | fees, schedule |
decaySecs | How long the opening fee takes to fall to the steady fee (seconds) | 0 to 120 | 0 | 0 to 120 | fees, schedule |
referrerBps | A referrer's part of each fee (bps of the fee) | fixed at 0 | 0 | 0 to 10,000 | referrerBps |
holdersBps | The coin's holders' part of the creator side (bps) | 0 to 10,000 | 1,167 | 0 to 10,000 | holderShareBps |
autoLpBps | Auto-LP's part of the creator side (bps) | 0 to 10,000 | 3,000 | 0 to 10,000 | autoLpBps, autoLp.bps |
buybackBps | The buyback's part of the creator side (bps) | 0 to 10,000 | 0 | 0 to 10,000 | buybackBps, buyback.bps |
vestBps | The creator's vested slice of supply. The top also counts allocations (bps) | 0 to 5,000 | 1,500 | 0 to 9,999 | vesting.bps, allocations |
vestToHoldersBps | The most of supply a launch may vest to its holders (bps) | 0 to 5,000 | 0 | 0 to 9,999 | vestToHolders.bps |
vestedTotalBps | The most of supply vested in all: creator, allocations and holders (bps) | 0 to 5,000 | 0 to 9,999 | a ceiling | |
vestToHoldersSecs | How long a vest to holders runs (seconds) | 86,400 to 31,536,000 | 31,536,000 | 0 to 2^32 - 1 | vestToHolders.durationSeconds |
vestCliffSecs | The creator's cliff (seconds) | fixed at 2,592,000 | 2,592,000 | 0 to 2^32 - 1 | vesting.cliffSeconds |
vestSecs | The creator's vest, start to fully unlocked (seconds) | fixed at 31,536,000 | 31,536,000 | 0 to 2^32 - 1 | vesting.durationSeconds |
supply | The total supply (whole tokens) | 1 to 100,000,000,000 | 100,000,000,000 | 1 to 1,000,000,000,000,000,000 | supply |
capBps | The wallet cap's size (bps of supply) | fixed at 200 | 200 | 0 to 10,000 | walletCap.bps |
capSecs | The wallet cap's length. A top of 0 means no cap (seconds) | fixed at 86,400 | 86,400 | 0 to 2^32 - 1 | walletCap.seconds |
devBuyMaxBps | The most of supply a first buy inside the launch may take (bps) | 0 to 200 | 0 to 10,000 | a ceiling on devBuy | |
startDelaySecs | How far ahead a scheduled start may be (seconds) | 0 to 604,800 | 0 to 604,800 | a ceiling on startTime | |
startFdvUsd | The starting market cap on a quote token Bankr prices (whole USD) | 2,000 to 125,000,000 | 10,000 | 0 to 2^64 - 1 | curve.startFdvUsd |
metadataBytes | The longest metadata link (bytes) | 0 to 2,048 | 0 to 2,048 | a ceiling on metadataUri | |
feeRecipients | How many fee recipients a launch may name | 1 to 10 | 1 to 10 | a ceiling on feeRecipients | |
compoundIntervalSecs | The least time between two auto-LP compounds (seconds) | fixed at 300 | 300 | 1 to 31,536,000 | autoLp.intervalSeconds |
compoundShareBps | The most of the backlog one compound places. 0 is no share cap (bps) | fixed at 2,500 | 2,500 | 0 to 10,000 | autoLp.shareBps |
compoundDeviationTicks | How far the price may sit from its average for a compound to run (ticks) | fixed at 488 | 488 | 1 to 1,800 | autoLp.deviationTicks |
bandHalfWidth | The compound band's half width (spacings of 200 ticks) | fixed at 34 | 34 | 1 to 8,872 | autoLp.band.halfWidthTicks |
bandGrid | The grid the compound band snaps to (spacings of 200 ticks) | fixed at 10 | 10 | 1 to 8,872 | autoLp.band.gridTicks |
buybackIntervalSecs | The least time between two buyback fills (seconds) | fixed at 300 | 300 | 300 to 31,536,000 | buyback.intervalSeconds |
buybackRetrySecs | The wait after a fill that could not run (seconds) | fixed at 60 | 60 | 60 to 31,536,000 | buyback.retrySeconds |
rewardStreamSecs | How long a deposit of holder rewards streams (seconds) | fixed at 86,400 | 86,400 | 86,400 to 2,592,000 | holderStream.seconds |
feeCeilingPips | The most the fee and an extension's fee reach together (pips) | fixed at 100,000 | 100,000 | 0 to 999,999 | feeCeilingPips |
extMaxPips | The most an extension, built-in or custom, may add to a fee (pips) | 0 to 100,000 | 0 to 16,777,214 | a ceiling on extension | |
curveMinDepthDiv | Own bands: a band holds at least 1 / this of a flat curve's depth | fixed at 10 | 10 | 1 to 2^32 - 1 | a rule for curve |
curveMaxDensity | Own bands: a band holds at most this many times the flat depth left | fixed at 2 | 2 | 1 to 2^32 - 1 | a rule for curve |
curvePlaceTicks | Own bands: the reach, from the start, that must hold most of the sale (ticks) | fixed at 120,000 | 120,000 | 0 to 1,774,400 | a rule for curve |
curvePlaceBps | Own bands: the part of the sale placed inside that reach (bps) | fixed at 9,000 | 9,000 | 0 to 10,000 | a rule for curve |
curveDustPpm | Own bands: the most of the sale rounding may leave unplaced (parts per million) | fixed at 2 | 2 | 0 to 1,000,000 | a rule for curve |
padShareBps | The contracts' ceiling on what a launchpad's payees take together. Setting it on your launchpad changes nothing (bps) | 0 to 10,000 | 0 to 10,000 | a ceiling on your payees | |
rewardRestartBps | The part of the stream left that a top-up must reach to restart it (bps) | fixed at 1,000 | 1,000 | 1 to 10,000 | holderStream.restartBps |
A row with no default is a ceiling: a launch may go up to its top.
Every switch
A feature launches only where your launchpad has its switch on.
| Switch | A new launchpad | On, a launch may |
|---|---|---|
devBuy | on | Buy the coin in the launch transaction. |
allocations | on | Give slices of the supply to other wallets. |
capExclusions | on | Exempt wallets from the wallet cap. |
metadataAdmin | on | Name an account that can replace the metadata link. |
takeover | off | Nothing. It decides whether your future coins can be taken over. |
unlistedQuotes | on | Pair with a token Bankr does not list. |
extPresets | on | Use one of the built-in extensions. |
extQuoteOnly | off | Use custom extension code that only quotes a fee. |
extCallsOut | off | Use custom extension code the hook also calls after each swap. |
extOwnerSwitch | on | Use an extension that charges a fee. Bankr can then stop that extension's fee. |
launchCompoundAmounts | off | Name its own auto-LP floor and cap. |
Every built-in extension charges a fee, so it needs extOwnerSwitch on.
Every feature has an off state
| Feature | Off for your launchpad | Off for one launch |
|---|---|---|
| Wallet cap | capSecs with a max of 0 | walletCap: false |
| Creator vesting | vestBps with a max of 0 | vesting: { bps: 0 } |
| Extra allocations | The allocations switch | None named |
| A vest to holders | vestToHoldersBps with a max of 0 | None named |
| Buyback | buybackBps with a max of 0 | buybackBps: 0 |
| Auto-LP | autoLpBps with a max of 0 | autoLpBps: 0 |
| The creator's holder share | holdersBps with a max of 0 | holderShareBps: 0 |
| Snipe protection | decaySecs with a max of 0 | A flat schedule |
| A first buy | The devBuy switch | No devBuy |
| Referrers | referrerBps with a max of 0 | referrerBps: 0 |
| Extensions | The three ext… switches | No extension |
| Custom liquidity bands | "any" not allowed, and no bands listed | A built-in curve |
| A scheduled start | startDelaySecs with a max of 0 | No startTime |
| A metadata admin | The metadataAdmin switch | No metadataAdmin |
| Takeover | The takeover switch. It starts off. | Not a launch's choice |
| Quote tokens Bankr does not list | The unlistedQuotes switch | A listed quote token |
| New launches | launchpads.setPaused(id, true) |
Every launch option
client.plan(input) and client.launch(input) take the same input. Only name, symbol, launcher and launchpadId matter for a first launch. Every other option has a default.
| Option | Default | What it names |
|---|---|---|
name, symbol | Required | 1 to 100 and 1 to 20 characters. |
launcher | Required | The account that sends the launch. It pays any first buy and is the default fee and vesting recipient. |
launchpadId | 0n | The launchpad. Always pass it: launchpad 0 is Bankr's own and takes only launches Bankr signs. |
quote, startFdv | WETH | Quote tokens |
metadataUri, metadataAdmin | Empty, nobody | Metadata |
schedule or fees | The launchpad's | Fees and snipe protection |
referrerBps, holderShareBps, autoLpBps, buybackBps | The launchpad's | Fee shares and payees |
feeRecipient or feeRecipients | The launcher | Fee shares and payees |
allowContractFeeRecipient, allowOpenCodeFeeRecipients | false | Waivers for a fee recipient that is a contract. |
claimOperator | None | The wallet that may claim for a contract fee recipient, on a coin that can be taken over. |
supply, curve | The launchpad's, "runner_v1" | Supply and the curve |
vesting, allocations, vestToHolders | The launchpad's, none, none | Vesting and allocations |
walletCap, capExclusions | The launchpad's | Wallet cap |
devBuy | None | First buy |
holderStream | The launchpad's | Holder rewards |
autoLp, buyback | The launchpad's | Auto-LP and buyback timing |
startTime | At launch | Scheduled start |
extension, feeCeilingPips | None, the launchpad's | Extensions |
salt | Chosen by the SDK | A single-use bytes32 of your own. |
deadlineSeconds | 1,200 | How long the launch stays valid. Raise it for a Safe or an ERC-4337 launcher. |
The client's options
createLaunchClient(options):
| Option | Default | What it is |
|---|---|---|
chain | Required | The chain's name, such as "base". Chains and addresses lists them. |
publicClient | Built from rpcUrl | Any viem public client, for reads and simulations. |
rpcUrl | The chain's public RPC | Your own RPC URL. Required on Arc. Recommended on Robinhood Chain, Ethereum and BNB Chain, whose public RPCs are limited. |
walletClient | None | Signs client.launch. Not needed to plan or to build unsigned transactions. |
authorizer | None | Approves launches on a launchpad that has a signer. Launch for your users |
api | false | api: {} registers each launch with Bankr's launch index. Reading launches |
builderCodes | None | ERC-8021 builder codes appended to the launch's calldata. |
appendBankrBuilderCode | false | Also append Bankr's own builder code. |
addresses, fork | The SDK's own | For a local fork of the contracts. Never set fork against a live chain. |
When a value is refused
client.plan reads the launchpad, fills what you left out from its defaults, and asks the contracts for the terms the coin would get. A refusal is an SDK error with a stable code, and err.detail is a sentence in the launchpad's own numbers.
| Code | When | A detail you might see |
|---|---|---|
OUTSIDE_LAUNCHPAD_RANGE | A term is outside the launchpad's range. | "The wallet cap's length is fixed at 1 day on this launchpad." |
FEE_OUT_OF_BOUNDS, SPLIT_OUT_OF_BOUNDS, VESTING_OUT_OF_BOUNDS | The same, for a fee, a share of the fee or a vesting term. | "The trading fee must be between 1% and 2% on this launchpad." |
NOT_ALLOWED_BY_LAUNCHPAD | The launch uses a feature the launchpad has switched off. | "This launchpad does not allow builder allocations." |
OPTION_FOR_FEATURE_OFF | The launch names an option of a feature it leaves off. | "feeCeilingPips is a term of a launch with an extension." |
EXTENSION_OUT_OF_BOUNDS, EXTENSION_NOT_ALLOWED | An extension parameter is outside its bound, or it cannot launch here. | "Sniper Tax buy fee can be at most 100,000 pips on this launchpad." |
HARD_BOUND | One of the few rules no setting moves, such as shares adding up. |
Errors lists every code.