Repository navigation
docs: add deposit economics analysis and practical minimum to ADR 003 - #51
Conversation
…closes #21 Gas overhead at the 1 USDC contract minimum is 23% of deposit — poor first-time UX. Add a Deposit Economics section with gas-to-deposit ratio table, recommend 10 USDC as the client-side default (2.3% overhead), distinguish contract floor from practical minimum, and outline gasless channel opens (ERC-2771/ERC-4337) as post-PoC future work. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Updates ADR 003 (Payment Model) to quantify channel gas overhead relative to deposit sizes and to introduce a client-side “practical minimum” deposit recommendation, with notes on future gasless onboarding options.
Changes:
- Adds a Deposit Economics section with a gas-overhead table and a recommended 10 USDC practical minimum deposit.
- Adds a Future: Gasless Channel Opens subsection (ERC-2771 / ERC-4337), deferred post-PoC.
- Updates the Negative consequences and channel griefing analysis with gas-overhead context.
💡 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 the payment architecture documentation to include a detailed analysis of deposit economics, recommending a 10 USDC practical minimum to mitigate gas overhead on Arbitrum L2. It also outlines future paths for gasless channel opens using ERC-2771 and ERC-4337. Review feedback identified an inconsistency in the capacity calculations for the recommended deposit and suggested using concrete contract field names and rounded overhead percentages to improve clarity and traceability.
… period - Fix 10x error in deposit capacity calculation (10 USDC = 10M MB at floor, 1000 GB at market rate, not 1M MB / 100 GB) - Note that $0.23 lifecycle estimate assumes existing ERC-20 approval; first-time users pay ~$0.03 additional for approve tx - Clarify watchtower column is per 30-day monitoring period Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
Closes #21
Test plan
🤖 Generated with Claude Code