Skip to content

ADR 003/004: Fee discount should use stake multiplier, not hardcoded absolute #12

Closed

Description

@thiras

Category: Cross-ADR Consistency

Two ADRs describe the fee discount threshold:

  • ADR 003: "nodes staking ≥10× the minimum TOKEN stake pay 1.5%"
  • ADR 004: "Providers staking ≥10× the minimum (10,000 TOKEN)"

These are consistent now (10× × 1,000 = 10,000). But if governance changes the minimum stake (e.g., to 5,000 TOKEN), the 10× multiplier and the 10,000 absolute number diverge.

Recommendation

The StablePaymentChannel.getEffectiveFee() contract should call StakingRegistry.getStakeMultiple(provider) and check multiple >= 10, rather than comparing against a hardcoded 10,000 TOKEN threshold. ADR 003 and 004 should be aligned on this.

ADRs affected

  • ADR 003 (Payment Model)
  • ADR 004 (Tokenomics)

Activity

  1. added
    design:consistency
    on Mar 29, 2026
  2. alpergundogdu commented on Mar 30, 2026

    @alpergundogdu
    Contributor

    Fixed in commit 5dce950.

    ADR 003: Added getEffectiveFee implementation showing it calls StakingRegistry.getStakeMultiple(provider) >= DISCOUNT_MULTIPLE (where DISCOUNT_MULTIPLE = 10) rather than comparing against a hardcoded 10,000 TOKEN threshold. Also clarified the getStakeMultiple comment to note it scales with governance changes to minStake.

    ADR 004: Removed the parenthetical (10,000 TOKEN) absolute value and noted that the contract uses the multiplier check with a cross-link to ADR 003. The threshold now auto-scales if governance changes the minimum stake.

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

    design:consistency

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions