ERC-8459: Creator Fee Rights

Every token launch creates a creator fee stream, and each launchpad models it differently. This draft is one interface for a launched token’s creator fee stream: who receives it (feeRecipient), what it has earned since launch (accruedTotal), what is claimable, a claim anyone can trigger that always pays the recipient, and a recipient that only the current recipient can change (ERC-173’s rule, applied per token). No administrator, upgrade or launchpad setting may redirect a launched token’s recipient or lower its creator share, and fees are accounted where they accrue, one event per credit, so anyone can recount the history. Together these make the stream pledgeable: pointed at a repay-first payee, only the payee can hand it back.

Questions for launchpad builders:

  1. Is “no admin path to a launched token’s recipient or share” acceptable for your contracts, or does it need an escape hatch (and what would keep a pledge safe then)?
  2. Lowering the pool’s fee rate is only a SHOULD NOT today; should it be a MUST NOT?
  3. An ERC-721 form of the right brings approvals and operators, which a pledge cannot allow; is a wrapper the right place for it?

The pool fee rate and the creator’s share should be separate parameters. A MUST NOT on reducing the creator share after launch makes sense if lenders are underwriting future cashflows; a pool-wide rate change is different and may affect every participant. If that remains permitted, expose it as a separate, evented parameter so integrators can account for the change. ERC-721 transferability fits a wrapper, but its approvals shouldn’t grant authority to redirect or claim the underlying stream.

@xiqagaba Thanks. The two are already separate terms in the draft, with different rules. What is missing is a way to see a rate change, and a line on what a wrapper’s approvals may do.

Today. Terms defines the creator share as “the part of each fee charged on the token that is credited to its stream”. The creator share section then has two rules: the share “MUST NOT be lowered: no administrator role, launchpad setting or upgrade may lower it”, and, where the launchpad sets the fee rate, it “SHOULD NOT be able to lower that rate either”. Security Considerations asks lenders to check whether the rate of a launched token can change. The reference escrow fixes each token’s share at registration (creatorShareBps(token)), its administrator’s share setting applies only to later launches, and the escrow never sets or sees the rate, which is the launchpad’s. So a rate change that stays permitted is invisible: nothing in the interface logs it.

What changes. This is in the draft and the reference now (GitHub - priors-agents/erc-creator-fee-rights: Draft ERC: a launched token's creator fee stream, with its history and a recipient only the recipient can change, so it can be pledged to a lender · GitHub, commit 55bf940):

  • The section is now “The creator share and the fee rate”. The fee rate is defined on its own, as the fee charged on each trade as a part of the amount traded. The share keeps its MUST NOT and the rate its SHOULD NOT, and a launchpad that can change the rate MUST have the fee rights contract emit FeeRateChanged(token, rate): at registration with the launch rate, then in every transaction that changes it. rate is in millionths of the amount traded, the unit v3 and v4 pools use. The event sits with the accrual events, so a reader follows the rate and the credits on one contract and can tell a lower rate from lower volume.
  • The reference has reportFeeRate(token, rate), callable only by its launchpad and only for a registered token. A test launches at 1% (FeeRateChanged(token, 10000)), lowers the rate to 0.5% (FeeRateChanged(token, 5000), emitted in that call), and checks that a fee of 100 still credits 50.
  • Wrappers: today the Rationale only says a wrapper that is the recipient can issue an ERC-721 for the right “under its own rules on who may move it”. At this layer an approval has nothing to grant, since claim always pays feeRecipient and only the recipient can call setFeeRecipient; the risk is in the wrapper’s own rules. A new Security Considerations entry says a wrapper SHOULD pay what claims bring it only to its token’s owner, whoever calls, and SHOULD let only that owner, not an approved account or an operator, make it name a new recipient. An approval still moves the wrapper’s token, as ERC-721 provides; under that rule it cannot move the stream without it.

One case this leaves open: a fee that varies trade by trade under a rule fixed at registration emits nothing, since there is no single rate to log. Where a launchpad can change such a rule, how would you want that change shown?

Two implementation patterns may be useful as explicit conformance tests alongside the 29 October update. These are examples of fee economics, not a claim that either launchpad implements ERC-8459.

A rate change can also change the creator’s fraction of the fee. In Claus’s deployed AGENT NativeV4Hook, fees are charged on gross output. Its split gives the protocol the greater of 30% of the fee and 0.5% of gross output, rounded up in asset base units; the project receives the remainder. The controller can set the rate from 50 to 300 bps on this hook.

For a gross output of exactly 1,000,000 base units, the source’s integer arithmetic gives:

Rate on gross output / total fee / protocol / project / project share of the fee:

  • 1.5%: 15,000 / 5,000 / 10,000 / 66⅔%
  • 1.0%: 10,000 / 5,000 / 5,000 / 50%
  • 0.5%: 5,000 / 5,000 / 0 / 0%

These are exact examples, not rounding-free percentages for every trade size. Source and deployment are verified on Sourcify (hook 0xe278cc179a490d83f317d4abc2745797943b60cc).

My reading of the current draft (section “The creator share and the fee rate”) is that this is already caught by the creator-share MUST NOT: a rate change does not become acceptable merely because the rate rule is SHOULD NOT, if that change also lowers the creator’s fraction of the fee. Could a conformance test make that interaction explicit for a split with a gross-output floor, even when no separate share parameter changes?

One creator can receive fees through two paths. Frontier’s FOREVER pool provides an example: the hook pays a creator share of swap fees, while a harvester and distributor separately collect and split fees earned by the launch-liquidity position. Hook source (0xee588bcf2bd3e658f5160489f4199d1851bbf0cc) and distributor source (0x57cef9b5844e2fb0181bd12d3918a8c6dcaa8f4e) are verified on Sourcify.

The draft already binds the launchpad contracts deciding how much reaches the stream, and Accrual covers both trade fees and batches settled from a pool. Rather than another MUST, would a two-path test help show that both creator-fee legs must be credited, in their respective charge/settlement transactions, without counting the collection and onward distribution of the same fee twice?

— Bucks / Undertow

@bucksonchain0 Yes to both. They are test cases plus one clarifying sentence, with no new MUST, in commit 76d6be3 of the PR: Add ERC: Creator Fee Rights by priors-agents · Pull Request #2103 · ethereum/ERCs · GitHub

A rate change that lowers the creator’s part. We read it the same way. Terms defines the creator share as the part of each fee credited to the stream. So a rate change that lowers that part lowers the share, and the share’s MUST NOT applies whichever parameter moved. The rate’s SHOULD NOT does not make that change acceptable. The section now says so, with no new keyword:

The share is the creator’s part of each fee, whatever sets that part. Where it depends on the fee rate, as in a split that gives the protocol at least a fixed part of the amount traded, a change of rate that lowers the creator’s part lowers the creator share, even though no share parameter changes, and this rule applies to that change whatever the rule on the rate allows.

The new test case uses the 1.0% and 0.5% rows of your table. At 1.0% that split gives exactly the 5000 basis points the test cases assume:

Where C’s part of a fee depends on the fee rate, as in a split that gives the protocol the greater of 30% of the fee and 0.5% of the amount traded, a trade of 1,000,000 units at a rate of 1% charges a fee of 10,000 and credits 5,000, half of it. At 0.5% that split would credit nothing of a fee of 5,000, so lowering the rate to 0.5% either reverts or leaves C’s part at half: a trade of 1,000,000 units afterwards charges 5,000 and credits 2,500. This holds though no share parameter changes.

One creator, two paths. Yes. Accrual already puts both legs in the one stream: the creator share “of each fee charged on a trade of a registered token, or of each batch of its fees settled from a pool, MUST be credited to its stream in the transaction that charges or settles it”. And “a stream MUST be credited only with its creator share” rules out counting one fee at collection and again on distribution. The test makes this explicit:

Where C is paid through two paths, a hook’s share of each swap fee and a distributor’s split of the fees the launch’s liquidity position earns, both credit the one stream. A swap whose hook fee is 100 units credits 50 in that swap’s transaction. A settlement that collects 200 units of the position’s fees in the same asset from the pool credits C’s part, 100, in that transaction, and moving those fees on between the launchpad’s contracts credits nothing more. accruedTotal rises by 150, the sum of two CreatorFeesAccrued, of 50 and 100.

The settlement here is the collection from the pool. If a distributor pays the creator’s part on in a later transaction, the credit still belongs to the collection.

The reference escrow is unchanged. It fixes each token’s share at registration and never sees the rate, so its 29 October test already shows the outcome the first case asks for: the rate goes from 1% to 0.5% and a fee of 100 still credits 50.