Repository navigation
docs: replace legacy migration path with slashing-channel interactions - #52
Conversation
#9) The stablecoin migration path in ADR 003 was superseded by ADR 010's governance-managed token allowlist. Replace it with a token-agnostic section documenting how slashing, auto-ejection, and channel settlement interact. Add cross-reference from ADR 004's auto-ejection section. Closes #9 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Updates the payment-model ADRs to remove an obsolete stablecoin migration plan and replace it with documentation of how slashing/auto-ejection interact with payment channel lifecycles, plus adds cross-references from tokenomics.
Changes:
- Replaces “Stablecoin Migration Path” in ADR 003 with a “Slashing and Channel Interactions” section describing slashing, auto-ejection, and channel settlement behavior.
- Adds an ADR 004 cross-reference noting that auto-ejection does not affect existing payment channels.
- Fixes a stale contract isolation reference in ADR 003 (
PaymentChannel→StakingRegistry).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| adr/003-payments.md | Removes legacy migration content; adds new slashing/channel interaction documentation; updates contract isolation reference. |
| adr/004-tokenomics.md | Adds a cross-reference from auto-ejection to ADR 003’s new slashing/channel interactions section. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request updates ADR 003 and ADR 004 to clarify the independence of payment channels from slashing and node ejection mechanisms, ensuring that client funds remain secure and channels can settle normally regardless of a node's staking status. The reviewer provided feedback correcting several technical inaccuracies regarding the functional separation between the StablePaymentChannel and StakingRegistry contracts, specifically noting dependencies for fee calculations and the actual protocol flow for channel participation and node verification.
StablePaymentChannel references StakingRegistry via getEffectiveFee for read-only fee discount lookups. Reword "isolated"/"no reference" to "functionally separated" and clarify the interaction is read-only. Fix openChannel flow: clients check registration before opening, nodes verify status before accepting StreamRequest. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
PaymentChannel, now correctlyStakingRegistry)Closes #9
Test plan
#slashing-and-channel-interactionsanchor works from ADR 004 cross-reference#slash-amounts-escalatingand#auto-ejectionanchors in ADR 004 still resolve🤖 Generated with Claude Code