Skip to content

Drop multi-token PaymentChannel; StablePaymentChannel accepts allowlisted stablecoins from day 1 #583

Closed as not planned

Description

@alpergundogdu

Summary

Team decision: drop the separate multi-token PaymentChannel contract entirely and make the existing StablePaymentChannel accept multiple governance-allowlisted stablecoins from day 1 — no PoC/production split for payments.

  • Launch with USDC. Governance can add more stablecoins to the allowlist later.
  • Anyone wanting a non-stablecoin token swaps it themselves off-protocol when sending/receiving. The contract never prices across tokens, so no oracles are needed — that was the source of unacceptable contract complexity.
  • StablePaymentChannel is the one payment contract, multi-stablecoin from launch. The good parts of ADR 010 (governance allowlist, per-token rate bounds, token-in-channel-ID, forceCloseChannel on token removal, token vetting, wire/gossip/incentive plumbing) move into ADR 003, scoped to stablecoins (no arbitrary ERC-20, no price normalization).
  • ADR 010 is rewritten to a short Dropped record. Every PaymentChannel reference and PoC/production payment seam across the corpus is removed.

This reshapes scope: a previously post-PoC feature is partially adopted (multi-stablecoin) and partially rejected (arbitrary multi-token + separate contract).

Decision detail

Before After
Payment contract StablePaymentChannel (PoC, USDC-only) → superseded by PaymentChannel (prod, any ERC-20) StablePaymentChannel only — multi-stablecoin allowlist from day 1
Token scope Arbitrary governance-approved ERC-20 (prod) Governance-allowlisted stablecoins (USDC at launch)
Cross-token pricing Implicit oracle/price-normalization problem (open) None — single-token channels; users swap off-protocol
PoC/prod seam StablePaymentChannelClient vs MultiTokenPaymentChannelClient Single client, no seam
ADR 010 Proposed (Post-PoC) Dropped (short record; surface lives in ADR 003)

ADR 003 — fold in the multi-stablecoin surface (primary edits)

Rewrite "PoC USDC-only / superseded by ADR 010" framing → "multi-stablecoin allowlist from day 1, USDC at launch":

  • Decision/Context/Consequences prose: USDC-only → governance-allowlisted stablecoin (USDC at launch); the Circle-freeze line no longer "deferred to ADR 010" (mitigation is available day 1 by allowlisting a non-Circle stablecoin).
  • ### StablePaymentChannel intro: drop "PoC payment channel … superseded by multi-token PaymentChannel".
  • Channel.token: "hardcoded to USDC for PoC; any ERC-20 in production" → "any allowlisted stablecoin; set at open, immutable".
  • Channel ID: keccak256(client, provider, channelNonce) → keccak256(client, provider, token, channelNonce) (concurrent channels per stablecoin); update the ordering note and drop the "ADR 010 extends this" terminology aside.
  • Function table + lifecycle: add addToken(token, deliveryFloor, deliveryCeiling), removeToken(token), forceCloseChannel(channelId); openChannel(provider, deposit) → openChannel(provider, token, deposit); getRateBounds() → getRateBounds(token); setRateBounds(floor, ceiling) → setRateBounds(token, floor, ceiling).
  • Constructor (usdc, feeRouter, disputeWindow) → (initialStablecoin, feeRouter, disputeWindow) with addToken(initialStablecoin, 1, 1000) at deploy.
  • Events: ChannelOpened.token comment → "allowlisted stablecoin"; add TokenAdded/TokenRemoved; ChannelForceClosedByTokenRemoval is native (drop "production PaymentChannel only").
  • Rate bounds become per-token (each in its own base units); rewrite "deferred to ADR 010" + the "Multi-token extension" subsection so RateBoundsUpdated(address indexed token, …) is the day-1 event; relabel "Initial rate bounds (PoC)" → "(USDC at launch)"; drop "governable post-PoC" → "governable".
  • Decimal Handling: amounts in the channel token's base units; fold ADR 010's TokenInfo + on-chain decimals() cross-check (fatal mismatch at startup); drop "Currency enum deferred to ADR 010".
  • Move ADR 010's Token Vetting Checklist here, scoped to stablecoins: add an explicit "must be a fiat-pegged stablecoin (~1:1 with the reference unit)" requirement; keep items 1–7; the new anchor becomes the inbound link target (see below).
  • Slashing-interaction line: "governance-approved tokens (ADR 010)" → "allowlisted stablecoin".

ADR 005 / 013 — wire protocol native from v1

  • ADR 005 StreamRequest: add payment_token: Address to the base schema (it ships before first implementation, so no compat issue); add the UnsupportedToken { accepted: Vec<Address> } response (folded from ADR 010 "Wire Protocol"). getRateBounds() → getRateBounds(token) at line ~81.
  • ADR 013 line ~258: rewrite the note — payment_token is in base StreamRequest from v1, so the postcard positional-append hazard / "post-PoC" framing no longer applies.

ADR 008 — reputation cross-token normalization

Line ~65 open question references ADR 010's lack of price normalization. With a stablecoin-only allowlist, settlement values normalize by decimals to a common USD-cent unit (peg ≈ 1:1, no oracle). Fix: rewrite to state decimal-normalization across allowlisted stablecoins; remove the speculative "future amendment to ADR 010 / isStablecoinEquivalent flag". (See open question O1.)

Plain rename / repoint (PaymentChannel → StablePaymentChannel, drop ADR 010 link)

  • ADR 009 L79–82, L109: drop "PaymentChannel (production)"; per-token floor is native (not "in production, ADR 010").
  • ADR 014 L242, L56: verify StablePaymentChannel wording carries no USDC-only/PoC framing.
  • ADR 016: inventory row L24 (Token Types USDC → allowlisted stablecoins; drop "multi-token PaymentChannel … deferred"); L8 reference list (drop ADR 010); L606 funds table; L624 ("/ PaymentChannel"); L773–783 "Multi-Token Reentrancy Considerations (deferred per ADR 010)" → native to StablePaymentChannel; L781/L789/L820; References L839/L841.
  • ADR 018 L61, ADR 026 L59: PaymentChannel.settleChannel → StablePaymentChannel.settleChannel.
  • ADR 019 L121: getRateBounds(token), drop PoC/prod split.
  • ADR 024 L38/L89: USDC → allowlisted stablecoin.
  • adr/README.md L3/L10/L22, architecture.md L73/L76/L149/L193, glossary.md L22.
  • appendix-operator-key-rotation.md L54/L113, appendix-operator-upgrade-path.md L62/L114/L125/L127/L138 (no contract-swap migration; forceCloseChannel now applies to a removed stablecoin, not a PoC→prod replacement), appendix-poc-production-seams.md L17/L29/L78–91/L147/L164/L293–295/L345–348 (remove the payment-contract and token_rates seam rows; collapse the dual PaymentChannelClient impls into one).

ADR 010 — rewrite to Dropped

**Status:** Proposed (Post-PoC) → **Status:** Dropped. Short, self-contained body: the separate arbitrary-ERC-20 PaymentChannel contract (and the PoC→prod swap/migration) is dropped because correct cross-token settlement pricing would require oracles → unacceptable contract complexity; multi-stablecoin support is instead handled by ADR 003's StablePaymentChannel governance allowlist from day 1; non-stablecoins are swapped off-protocol by users. No issue/PR refs, no _history breadcrumb (per the self-contained + no-breadcrumb conventions).

Convention guardrails

  • decdn/adr/ stays self-contained: no issue/PR/self-repo refs introduced in any ADR/appendix/README; ADR 010 link removals must not leave dangling [ADR 010]/anchors.
  • Repoint inbound anchors: 010-multi-token.md#token-vetting-checklist → ADR 003's new vetting anchor; 010-multi-token.md#migration-from-adr-003 references retired (no migration exists).
  • Heading levels: no skips when restructuring ADR 003 / ADR 010.
  • Statuses of other ADRs unchanged (only ADR 010 flips).

Open questions — need your call

  • O1 — FeeRouter / six-bucket split is USDC-denominated. ADR 026's FeeRouter.routeSettlement and the six buckets assume USDC. With non-USDC stablecoin channels, settlement forwards e.g. DAI to FeeRouter. Recommended: keep the gate at the allowlist — governance does not addToken a second stablecoin until per-token FeeRouter accounting is wired, mirroring ADR 016 §Tunable Economics ("ship full surface, governance activates when ready"). Launch is USDC-only in practice. Your call: accept this gating model, or specify per-token FeeRouter accumulators now?
  • O2 — ADR 008 open question. Recommended fix closes it (stablecoin peg makes normalization trivial). OK to close it, or keep it flagged as an explicit open item?
  • O3 — Dropped ADR in the canonical book. ADR 010 stays a file (per your instruction) and remains in the reading-order book + numeric PDF as a 1-page Dropped record. Alternative: move the rejected-design detail to adr/_history/alternatives-pre-launch.md and make ADR 010 a pure pointer (closer to the "ADRs are not an iteration log" README convention). Recommended: concise Dropped ADR 010, no _history change (matches your explicit instruction; minimal scope).
  • O4 — Status vocabulary. Using bare Dropped (no corpus precedent; matches your "set its status to drop" phrasing and the bare-word sign-off convention). Confirm vs. Superseded by ADR 003.

Activity

  1. added
    design:consistency
    design:economics
    design:adr
    on May 18, 2026
  2. github-actions commented on May 18, 2026

    @github-actions

    🎯 Triage report

    This is a well-specified team decision to collapse the two-contract payment model (StablePaymentChannel PoC + PaymentChannel post-PoC) into a single StablePaymentChannel with a governance-managed stablecoin allowlist from day one, eliminating the need for oracles. The scope is large — it touches ADR 003, 005, 008, 009, 010, 013, 014, 016, 018, 019, 024, 026, and multiple appendices — but each edit site is precisely called out. Four open questions need author sign-off before the work can be considered complete.

    📊 Assessment

    Dimension Value Reasoning
    Type Task A concrete, bounded authoring task to rewrite/update ADRs and remove a design artifact
    Labels existing: adr-review, consistency, economics, scope, ADR — already applied All five existing labels are accurate; no additional ones needed
    Coding agent Needs more info The ADR edits are fully specified, but four open questions (O1–O4) require author decisions before the agent can produce a canonical final text; the agent could draft the non-controversial parts

    🔗 Similar issues

    💡 Notes and suggestions

    Open questions that must be resolved before merging:

    • O1 (FeeRouter / DAI): The recommended gating model (governance doesn't addToken a second stablecoin until per-token FeeRouter accounting exists) is pragmatic and consistent with the "full surface, governance activates" principle in ADR 016. Accepting it avoids spec work now; the alternative (per-token FeeRouter accumulators in this PR) would be a significant addition. Recommend accepting gating.
    • O2 (ADR 008 open question): Closing it via the decimal-normalization argument is sound for a stablecoin-only allowlist; leaving it open invites future confusion. Recommend closing.
    • O3 (Dropped ADR format): The "concise Dropped ADR 010, no _history change" option is cleanest and matches the stated convention. Recommend accepting.
    • O4 (Status vocabulary): Dropped (bare word) is unambiguous and matches the author's own phrasing. Superseded by ADR 003 is also defensible but implies ADR 003 replaces ADR 010 wholesale rather than absorbing a subset. Recommend Dropped.

    Suggested sub-task checklist for the implementing PR:

    • ADR 003: rewrite multi-stablecoin surface (channel ID, function table, constructor, events, rate bounds, decimal handling, token vetting checklist)
    • ADR 005/013: payment_token in base StreamRequest from v1; UnsupportedToken response; update compat note
    • ADR 008: close O1 open question; rewrite decimal normalization prose
    • ADR 009/014/016/018/019/024/026: plain renames + repoints (see issue body line-level refs)
    • appendix files: remove payment-contract seam rows and dual PaymentChannelClient impl from appendix-poc-production-seams.md; update appendix-operator-upgrade-path.md migration prose
    • ADR 010: rewrite to short Dropped record
    • adr/README.md, architecture.md, glossary.md: update all affected references
    • Verify no dangling [ADR 010] anchors remain after link removals
    • Issue Implement on-chain CapacityBond and PaymentChannel contract integration #327: assess whether it needs retitling/rescoping after PaymentChannel is formally dropped

    Risk note: appendix-poc-production-seams.md lines 78–91 and 293–295 / 345–348 remove the entire payment-contract seam section — reviewers should confirm no Rust code in crates/incentive/ still imports a PaymentChannel type before merging.

    Generated by Agentic Triage for issue #583 · ● 1.9M · ◷

    To install this agentic workflow, run

    gh aw add githubnext/agentics/workflows/issue-triage.md@94ec5db57374c5b04a4b8eef8b4413f9af44d63f
    
  3. alpergundogdu commented on May 19, 2026

    @alpergundogdu
    ContributorAuthor

    Closing — superseded by #591 (single-token USDC).

    This issue proposed a multi-stablecoin allowlist from day 1. The team subsequently reversed direction: #591 ("Single-token launch: USDC-only, address fixed at deployment") explicitly rejected this approach, and its ADR changes are merged. The implementation PR for this issue (#585) was closed unmerged.

    The four open questions are all resolved by the single-USDC decision:

    • O1 (FeeRouter per-token gating): Moot — one immutable USDC token; the six-bucket split is permanently USDC-denominated. No gating model or per-token accumulators needed.
    • O2 (ADR 008 cross-token normalization): Closed in Single-token launch: USDC-only, address fixed at deployment — reject #583, strip multi-token/allowlist from ADRs #591 — effective_settled_value now states single-USDC, no normalization.
    • O3 (Dropped ADR 010 placement): ADR 010 deleted entirely; rationale archived in adr/_history/alternatives-pre-launch.md; "do not reuse 010" recorded in CLAUDE.md.
    • O4 (status vocabulary): Moot — no ADR 010 file exists to carry a status.

    No further ADR work required; the corpus is consistent with the single-USDC model. Closing as superseded.

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:adrdesign:consistencydesign:economics

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions