the lifecycle
four user-visible states on the vault:- OPEN. depositors can put BNB in. they can withdraw any time before close.
- CLOSED. deposits are frozen. the bundle bot is about to execute.
- LAUNCHED. the bundle ran successfully. tokens are in the vault. presalers can claim.
- REFUND. the launch failed or expired. presalers can refund their BNB plus their pro-rata bonus share.
the actors
- the creator signs in with SIWE, picks a tier, writes metadata, pays the creation fee. they do not get tokens at TGE.
- the depositor (presaler) deposits BNB during the OPEN window. they get tokens (LAUNCHED) or their BNB back plus bonus (REFUND).
- the bundle bot is an EOA the platform runs. it watches for launches that
hit cap or window deadline, builds the bundle params, and calls
executeBundle()through a private mempool (puissant). - the FLAP portal is an third-party contract on BSC. it mints the token, fills the bonding curve, and auto-graduates to PCS v2 once the curve crosses the four-fifths threshold.
- the platform owner can transfer ownership and trigger admin-refund on a vault. cannot mint tokens. cannot drain BNB. cannot change tier math.
one transaction, atomic
the heart of the system isBundleRouter.executeBundle(). inside that one
transaction:
- pull BNB from the vault (
quoteAmt + v2BuyBnb) - call
FlapPortal.newTokenV6(...)withquoteAmt, which mints the token and seeds the bonding curve - if the curve graduates (BASED or higher), PCS v2 pair gets created automatically
- if
v2BuyBnb > 0, follow-up buy from the PCS pair (post-tax) - compute flat token splits against
totalSupply(): vault gets 200M (20% of supply), treasury gets 100M (10% of supply), burn gets the remainder (50% of supply for tier 80; more for graduating tiers since the V2 follow-up buy adds tokens to the router balance which all flow into burn) - call
vault.distribute(token, share)so claims can compute pro-rata - tip the 48 club builder EOA for inclusion
- sweep any BNB dust to burn
vault.enableRefundBundleFailed() and all presalers can refund.

