Fees and rewards
Every trade of a coin pays one fee. The contracts split it inside the swap and hold each party's share until that party claims it. This page says who is paid, and how each party claims.
To set a coin's fee, see Fees and snipe protection. To set who shares it, see Fee shares and payees.
The samples on this page use client, send and operator from Set up a launchpad. token is a coin's address.
Fees are paid in the quote token
A coin trades against its quote token, such as WETH or USDC. Every fee is taken in the quote token:
- On a buy, the fee comes out of the quote token the buyer pays in.
- On a sell, the fee comes out of the quote token the seller receives.
So every party is paid in the quote token, whichever way the trade went. Nobody has to sell the coin to realise a fee.
There is one exception, by design. The part of each fee that goes to the coin's holders from Bankr's cut is converted to BNKR where the quote token has a route to it. See Holder rewards.
How a fee splits
A fee splits in this order:
- Bankr's cut. 10% of the fee, and never less than 0.025% of the trade. Half of it goes to the coin's holders.
- A referrer, when the trade names one and the coin allows it.
- The launchpad's payees. Their shares of what is left.
- The creator side. What remains splits four ways, as the launch set it: the holders' share, auto-LP (fees added to the pool's locked liquidity), a buyback, and the coin's fee recipients: the launcher, unless the launch names others.
A worked example: a coin with a 1% fee, on a launchpad whose payee takes 20%, with a new launchpad's defaults for the rest. A 1 ETH trade pays 0.01 ETH:
| Share | Of the trade | ETH |
|---|---|---|
| Bankr | 0.05% | 0.0005 |
| The coin's holders, from Bankr's cut | 0.05% | 0.0005 |
| The launchpad's payee | 0.18% | 0.0018 |
| Auto-LP, locked in the pool | 0.216% | 0.00216 |
| The coin's holders, from the creator side | 0.084% | 0.00084 |
| The coin's fee recipients | 0.42% | 0.0042 |
client.plan(input).volumeSplit computes this split for any launch, in pips of the trade, before anything is signed.
Three things hold for every coin:
- Bankr's cut is not a setting. No launchpad or launch lowers or removes it. At a 0.25% fee or more it is 10% of the fee. At the lowest fee, 0.05%, it is half the fee.
- The split is fixed at launch. A live coin's fee, its payees and its fee recipients' shares never change.
- A coin paired with BNKR. On your launchpad, Bankr waives its own half of the cut for a coin whose quote token is BNKR. The holders' half is still paid.
Bankr's own launchpad
Launchpad 0 is Bankr's own. It takes only launches Bankr signs. Its terms show how the settings on these pages combine.
Its trading fee is fixed at 1.75% of each trade. A trade pays:
| Share | Of the trade |
|---|---|
| The creator: the coin's fee recipients | 0.665% |
| Locked liquidity, through auto-LP | 0.285% |
| Bankr's treasury | 0.475% |
| The Bankr flywheel: BNKR buybacks and Bankr-owned BNKR liquidity | 0.2375% |
| The coin's holders | 0.0875% |
It has snipe protection. The fee opens at 80% and falls to 1.75% over the first 14 seconds of trading. Of the part of a fee above 1.75% in those seconds, creators receive 27.1%. The rest goes to Bankr's treasury, the Bankr flywheel and the coin's holders.
A launchpad you register sets its own terms. To split snipe fees your own way, see A separate split for snipe fees.
Claim fees
The fee ledger is the contract that holds each party's share until it is claimed. One party's claim never moves another's share. A fee recipient and a launchpad's payee claim the same way.
Read and claim one coin:
import { formatEther } from "viem";
// Everything `operator` is owed on one coin, as a fee recipient or as a launchpad payee.
const fees = await client.fees.get(token, operator.address);
console.log(
`claimable: ${formatEther(fees.claimableQuote)} of the quote token`,
);
// Sent by the account that is owed. The claim pays that account.
for (const tx of await client.fees.buildClaim(token, operator.address))
await send(tx);
Read and claim every coin on the chain at once. These two calls read Bankr's launch index. While the index for the chain is behind they throw INDEX_UNAVAILABLE: retry shortly, or claim one coin with the calls above.
const owed = await client.fees.getOwed(operator.address);
for (const total of owed.totalByQuote)
console.log(
`${total.amount} of ${total.quote} across ${owed.buckets.length} shares`,
);
const { txs } = await client.fees.buildClaimAll(operator.address);
for (const tx of txs) await send(tx); // usually one transaction. Send them in order
| Call | What it does |
|---|---|
client.fees.get(token, account) | An account's share of one coin's fees, and what it can claim now. |
client.fees.buildClaim(token, account) | The unsigned claim for one coin. |
client.fees.getOwed(account) | Everything an account is owed on the chain, across every coin. |
client.fees.buildClaimAll(account) | The unsigned transactions that claim all of it. |
client.fees.getBalances(account) | An account's settled balance per quote token, such as a referrer's. |
client.fees.buildWithdraw(account, quotes) | Pays that balance out. A referrer collects with it. |
A launchpad payee earns on every coin launched on its launchpad, so buildClaimAll is the call a payee wants.
The same reads and claims work over HTTP, with no key and no SDK: Read an account's fees and Build a claim-all.
Who can claim for whom
- Anyone can pay the gas for another account's claim. The money only ever goes to that account.
- An account can turn that off. It restricts its claims, then names each wallet that may claim for it. It can always claim for itself.
await send(client.fees.buildSetClaimRestricted(operator.address, true));
await send(
client.fees.buildSetClaimOperator(
operator.address,
"0x1111111111111111111111111111111111111111", // may claim for `operator`. Paid to `operator` only
true,
),
);
A contract that values itself by its token balance, such as a vault, should restrict itself. Otherwise anyone can choose the moment its money lands.
Move a fee share
A fee recipient can move its own share to another wallet. The ledger pays the old wallet everything it has earned first, and the new wallet earns from then on. The move never touches the other recipients.
await send(
await client.fees.buildSetFeeRecipient(
token,
operator.address, // the current recipient, which sends the transaction
"0x2222222222222222222222222222222222222222", // the new recipient
),
);
Nobody but a fee recipient can move that recipient's share. The one exception is a takeover, only on a coin launched with takeover on.
Holder rewards
Every coin pays the wallets that hold it, by balance.
- There is nothing to stake. A wallet's rewards build up while it holds the coin, and it claims them when it likes.
- No service has to run. The contracts move the holders' share inside ordinary trades, or when anyone asks.
- You do not turn it on. Every launch has it. A launchpad or a launch cannot switch off the part that comes from Bankr's cut.
What feeds a coin's holders
| Source | Size | Paid in |
|---|---|---|
| Half of Bankr's cut of every fee | 5% of each fee | BNKR where a route exists, otherwise the quote token |
| Part of the creator side | The launch's holderShareBps. 11.67% of it on a new launchpad. | The quote token |
| A slice of the supply | The launch's vestToHolders. None unless the launch asks. | The coin itself |
On a coin with a 1% fee, 1,000 ETH of volume pays 10 ETH in fees. 0.5 ETH of that is the holders' half of Bankr's cut.
What the holders' half of Bankr's cut is paid in depends on the coin's quote token:
| The coin's quote token | Holders are paid in |
|---|---|
| A token with a route to BNKR. On Base: WETH and USDC. | BNKR. The contracts convert it. |
| BNKR itself | BNKR. There is nothing to convert. |
| Any other token | The quote token. |
Which one a coin gets is fixed at launch.
Rewards that arrive stream out to holders over the coin's stream length, 1 day on a new launchpad, in proportion to each holder's balance. A quick in-and-out trade cannot collect them. Tokens held by the launch's own contracts, such as the vesting escrow, earn nothing.
Claim holder rewards
A holder claims every reward of one coin with one transaction:
const rewards = await client.holders.get(token, operator.address);
const { bnkr, quote, token: coin } = rewards.legs; // what the holder has earned in BNKR, the quote token and the coin
console.log(bnkr.earned, quote.earned, coin.earned);
// Sent by the holder. The claim pays the holder. A claim with nothing earned reverts.
if (bnkr.earned + quote.earned + coin.earned > 0n)
await send(await client.holders.buildClaim(token, operator.address));
client.holders.buildClaimAll(account, tokens) claims several coins together. client.holders.buildClaimFor(token, sender, accounts) pays the gas for other holders' claims: the rewards only ever go to each holder.
How the conversion to BNKR runs
The holders' half of Bankr's cut collects per coin, in the quote token. Once it reaches a small floor, it is due. Two things move it along: a swap of the coin that asks for it, or anyone's call.
const conversion = await client.holders.getConversion(token);
console.log(
`waiting: ${conversion.pile}, converts to BNKR: ${conversion.converts}`,
);
// Anyone can send this. It converts the waiting amount and starts paying it to holders.
if (conversion.convertDue)
await send(await client.holders.buildConvert(token, operator.address));
The contracts bound every conversion: how often it runs, and how far it may move the price. A conversion that would break a bound waits for the next one. An amount that waits longer than 7 days is paid to holders in the quote token instead.
Routers that build their own swaps can ask for the conversion inside a trade. The SDK reference lists the helpers.
Referrers
A coin can let each trade name a referrer, who is paid a part of that trade's fee.
- The launchpad allows it with the
referrerBpssetting. It is off on a new launchpad. - The launch sets the rate:
referrerBps, in bps of the fee. - The trade names the referrer in its hook data:
encodeHookData({ referrer }).
A referrer's parts collect in its balance on the fee ledger. It reads them with client.fees.getBalances(account) and collects with client.fees.buildWithdraw(account, quotes).
An extension's fee
An extension charges its own fee on top of the coin's fee, also in the quote token. It is split apart from the coin's fee: 2/7 goes to Bankr and 5/7 to the payee the launch named. Who receives the fee has the detail.