04 · Developers
Choosing hooks
Pick the rule that matches the job. Do not stack five versions of the same job.
Each hook does one thing. A launch that wants three things uses three hooks. A launch that stacks eight fee hooks still pays one fee: the highest one.
Match the job
- Stop one wallet from buying the float. Cohort cap. It grows, then disappears. Sells are free of it.
- Stop one giant swap. Clip size. It is not a daily limit. The next swap can be the same size.
- Stop the whole market from buying too much this block. Block quota. Two wallets share one budget.
- Give a wallet a buy allowance that refills. Refill budget. This is the ongoing version of a cap.
- Keep buys from outrunning sells. Circulation. Bought tokens cannot pass sold tokens times your multiplier, plus a seed.
- Open and close the buy side on a clock. Wave. Sells stay open, so people can leave a closed window.
- Stop a fresh buyer from dumping. Sell delay. A wallet that never bought can still sell. A later buy resets the timer.
- Charge someone who trades the same way twice quickly. Stabilizer. The next opposite trade can claim the surcharge.
- Pay the team from buys, split by weight. Split stream. Up to four recipients. Shares must add to 100%.
- Pay buyers for holding through sells. Buyer share. Claiming cashes out points. It is not a balance that keeps growing after you claim.
- Reward a buyer who locks. Conviction lock. Longer lock, smaller creator fee. Tokens sit on the hook until claim.
- Start expensive and get cheaper on a clock. Decay fee. Sells pay the floor fee the whole time.
- Get more expensive as price walks away from the open. Band fee.
- Get more expensive right after a buy, then cool. Calm fee. The reheating buy pays the current fee. The next swap pays the hot one.
- Keep a cheap fee for the first buyers. Pioneer seats. Later wallets, and every sell, pay the public fee.
- Charge more when a wallet sells a large share of what it bought. Dump weight. A wallet that never bought pays the minimum.
- Charge more after the launch token has fallen. Drawdown fee. Buys pay the calm fee and move the anchor.
- Lock sells, then cut the fee twice as volume arrives. Milestones.
- Lock sells through a price, then open the pool. Floor graduation. The sponsor seeds the liquidity. Outside LPs join after graduation.
- Stop a price from jumping away from a slow anchor. Twap guard. The anchor does not follow every trade.
- Add bonus tokens on a buy. Match chest. You deposit the bonus tokens first. An empty chest does not block the trade.
- Buy the launch token from the pool in one call. Buyback. The sink is chosen once. Other hooks still see the swap.
Combinations that fight
- Several fee hooks. Band, decay, calm, pioneer, dump weight, drawdown, milestones, and floor can all override the LP fee. The hub keeps the highest number. The others still run, so you pay their gas and only one fee lands. Pick one fee story.
- Cohort, clip, quota, refill, and circulation together. Each one can reject the buy for a different reason. That is correct if you want every gate. It is accidental if you copied a template. A buyer will not know which rule stopped them unless your interface reads the revert.
- Wave plus buyback. A buyback is a buy. A closed wave rejects it. Leave buyback off a pool whose wave is often closed, or accept that buybacks wait for the open window.
- Floor plus outside liquidity. Until graduation, only the floor hook may add or remove liquidity. Do not tell LPs they can join on day one.
- Match chest plus a tight circulation leash. The chest sends extra launch tokens to the buyer. The leash counts tokens that came out of the pool, not the bonus. They can coexist, but the bonus can make the circulating supply look larger than the leash.
A sensible first stack
NextDeveloper guideWave, cohort cap, and one fee hook. That is a clock, a wallet cap, and a price for liquidity. Add sell delay if you care about instant dumps. Add buyback only if some contract will actually call it. Leave the rest off until you can explain the revert to a trader.
How the contracts fit together, and the order of calls that produces a live pool.