Protocol
How fee routing works
From a trade to a destination: the path a creator fee takes.
Every creator fee follows the same path, whichever hook a token uses:
- A buy or sell happens against the token's launch curve. The creator fee is taken in ETH and held by the launchpad as pending fees.
- Anyone calls
routeCreatorFees(token). The token page has a button for this; automation can call it too. - The router reads the token's
feeConfigand splits the pending balance by the configured basis points. - Each slice is delivered: buybacks execute against the curve, liquidity is added, holder and jackpot balances are credited, treasury and referral shares are transferred.
- A
CreatorFeesRoutedevent records the amount, so the token page can show fees routed to date.
Why routing is permissionless
Because the split is fixed in the configuration, it doesn't matter who triggers a claim — the outcome is the same. Making the trigger permissionless means fees can't be left to sit indefinitely at a creator's discretion.
Basis points
The interface works in whole percentages; the contract stores basis points (10000 = 100%). A split is only accepted if its routes sum to exactly 10 000.