Repository navigation
docs: enforce mandatory rate bounds on addToken in ADR 010 - #113
Conversation
ADR 010's zero RateBounds default for newly added tokens bypassed ADR 009's rate floor safety bound (Floor ≥ 1 base unit), allowing zero-rate free-riding. Require deliveryFloor and deliveryCeiling parameters in addToken so bounds are set atomically with allowlist addition. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the governance and multi-token ADRs to enforce mandatory rate bounds (floor and ceiling) whenever a new payment token is added to the protocol. The addToken function signature has been updated to include these bounds, ensuring that no token exists in an unconstrained state. Feedback was provided regarding a potential inconsistency in the USDC rate ceiling value used in the migration example, which appears to be significantly higher than the value specified in previous documentation.
There was a problem hiding this comment.
Pull request overview
Updates the protocol ADRs to make rate bounds mandatory when adding a new payment token, aligning multi-token governance behavior with ADR 009’s “no zero-rate free-riding” safety rationale.
Changes:
- Update ADR 010
addTokento requiredeliveryFloor/deliveryCeilingat allowlisting time and initializerateBoundsimmediately. - Update ADR 010
setRateBoundsdocumentation to reflect the same non-zero floor / ceiling>floor constraints. - Update ADR 009’s safety-bounds table row to reference PoC vs production contracts (StablePaymentChannel vs PaymentChannel per-token).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| adr/010-multi-token.md | Makes rate bounds mandatory at addToken time; updates related prose and migration example. |
| adr/009-governance.md | Updates the rate floor/ceiling safety-bounds table row to reference production per-token bounds via ADR 010. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…r rationale Ceiling in migration example was 1000000 ($1/MB) — should be 1000 ($0.001/MB) per ADR 003 defaults. ADR 009 rationale now clarifies the floor applies per-token in production, not just USDC. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
addTokennow requiresdeliveryFlooranddeliveryCeilingparameters, enforcingfloor ≥ 1 base unit— closing the gap where newly added tokens had zeroRateBounds(no rate floor enforcement), which contradicted ADR 009's free-riding protectionsetRateBoundscomments updated to reflect the same floor constraintStablePaymentChannel(PoC) andPaymentChannelper-token (production)Test plan
addToken,RateBounds,rate.*floor, andfree-ridacross all ADRs to confirm cross-ADR consistencyaddTokensignature matches in all locations within ADR 010 (contract snippet, migration section, prose)🤖 Generated with Claude Code