Skip to content

docs: add deposit economics analysis and practical minimum to ADR 003 - #51

Merged
thiras merged 2 commits into
mainfrom
docs/adr-003-deposit-economics
Mar 30, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/adr-003-deposit-economics

Conversation

@thiras

@thiras thiras commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add Deposit Economics section to ADR 003 with a gas-to-deposit ratio table showing lifecycle gas ($0.23) as a percentage of various deposit sizes
  • Recommend 10 USDC as the client-side practical minimum (2.3% gas overhead), distinct from the 1 USDC contract floor
  • Add Future: Gasless Channel Opens subsection covering ERC-2771 meta-transactions and ERC-4337 account abstraction (deferred to post-PoC)
  • Update negative consequences and channel griefing analysis with gas overhead context

Closes #21

Test plan

🤖 Generated with Claude Code

…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]>
Copilot AI review requested due to automatic review settings March 30, 2026 21:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread adr/003-payments.md Resolved
Comment thread adr/003-payments.md Resolved
Comment thread adr/003-payments.md Resolved

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread adr/003-payments.md Resolved
… 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]>
@thiras
thiras merged commit 8ebb82c into main Mar 30, 2026
@thiras
thiras deleted the docs/adr-003-deposit-economics branch March 30, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ADR 003: Minimum deposit of 1 USDC — gas cost is 5-10% of deposit

2 participants