Skip to content

contracts: FeeRouter pays the rebate only to subscribed operators #2949

Not planned

Description

@alpergundogdu

Summary

FeeRouter.deposit pays the rebate only to operators subscribed in the arrival epoch (#2948). This is today's isActive gate, reading the subscription instead of the bond. A subscribed operator keeps 60% + 30% = 90%; any other registered operator keeps 60%.

Design

  • rebate = isSubscribed(op, arrivalEpoch) ? amount × rebateBps : 0; the rest goes to the treasury in the same transaction.
  • deposit accepts any registered operator. A deposit for an unregistered address goes wholly to the treasury.
  • Delete the capacity clamp in _credit.
  • Credit ledger: keep the per-epoch credited-bytes ledger (priced on the treasury leg with deliveryFloor) only if the gas measurement in deploy: mainnet beta (governance on Ethereum, payments on several chains) #2925 shows it is cheap on Ethereum. Otherwise delete it and deliveryFloor with it. Nothing reads it during the beta.

Tests

  • Subscribed and unsubscribed deposits.
  • A subscription that lapses between serving and the sweep's arrival.
  • An unregistered deposit.
  • With and without the ledger.

Depends on

#2926, #2948.

Activity

  1. added
    kind:feature
    area:contracts
    on Nov 23, 2026
  2. moved this from Backlog to Done in deCDNon Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:contractskind:feature

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions