Skip to content

contracts: non-transferable TOKEN for the mainnet beta #2923

Closed as not planned
Closed as not planned

Description

@alpergundogdu

Summary

The mainnet beta uses TOKEN only as the CapacityBond bond. Users cannot transfer it to each other. Every other TOKEN parameter (supply, decimals, the bond curve, minBond) matches the testnet.

Design

  • Token gains a transfer rule in _update: a transfer succeeds only when the sender or the receiver is the faucet or CapacityBond. The mint at construction stays allowed.
  • The allowed set is fixed at construction and has no setter. The token can never become transferable.
  • approve and permit still work, so CapacityBond can pull a bond with transferFrom.
  • CLI commands that move TOKEN between users (if any) are removed for the beta.

Tests

  • Faucet → operator, operator → CapacityBond (bond), and CapacityBond → operator (unbond) succeed.
  • Operator → operator, and operator → any other address, revert.
  • The allowed set has no setter.

Depends on

#2917. With no slashing, no burn or escrow path needs an exception.

Out of scope

The production TOKEN. Production is a fresh deployment, and its design is open.

Activity

  1. added
    kind:feature
    area:contracts
    on Nov 20, 2026
  2. alpergundogdu commented on Nov 23, 2026

    @alpergundogdu
    ContributorAuthor

    Closing as not planned: the mainnet beta design is changing and will not use a TOKEN bond. New issues will describe the replacement.


    Generated by Claude Code

  3. moved this from Backlog to Done in deCDNon Nov 23, 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