docs: reverse gas model concept page#19
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request replaces a TODO placeholder with comprehensive documentation of ICP's reverse gas model. The new content explains how canisters pay for resource consumption using cycles instead of users paying transaction fees, covering key concepts like the XDR peg, cycle conversion via the CMC, cycle costs for compute/storage/messaging, and developer responsibilities.
Changes:
- Replaced placeholder content with detailed explanation of the reverse gas model and its benefits
- Added sections on cycles as a unit of payment, XDR pegging, ICP-to-cycles conversion, and cost breakdowns by operation type
- Included information on developer responsibilities (topping up, freezing thresholds, deletion risks) and cost predictability compared to traditional blockchains
- Added links to related documentation (Cycles Management, Cycles Costs Reference, and Canisters concepts)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
marc0olo
left a comment
There was a problem hiding this comment.
Review: Reverse Gas Model
Must fix
-
Compute allocation table — 50% row inconsistent with reference: The table uses 1% / 50% / 100% as examples. cycles-costs.md documents 1%, 2%, and 100%. Replace 50% with 2% ("Scheduled every 50 rounds") to align, or add a note clarifying any value 0–100% is valid and these are illustrative.
-
Canister creation USD value is stale: Messaging table shows
500B cycles (≈$0.65). At the May 2025 rate (1 XDR ≈ $1.35) used throughout this site, 500B cycles = ~$0.677. Update to≈$0.68with a(May 2025)qualifier to match cycles-costs.md. -
Storage USD value is stale: "1 GiB for one year costs approximately 4T cycles (≈$5.35 USD)". The reference shows ~$0.45/month for a 13-node subnet = ~$5.40/year at the May 2025 rate. Update to
≈$5.40with the same qualifier.
Suggestions
- CycleOps external link: Recommending a specific third-party commercial tool in a concept page is a judgment call. Consider moving it to the cycles-management guide where practical tooling fits more naturally, or framing it as "for example, tools like CycleOps".
Verified
- All internal links resolve:
cycles-management.md,cycles-costs.md,canisters.md✓ - CMC canister ID
rkp4c-7iaaa-aaaaa-aaaca-caiand cycles ledgerum5iw-rqaaa-aaaaq-qaaba-caiverified against.sources/icskills/skills/cycles-management/SKILL.md✓ - No
dfxreferences, no.mdxusage ✓ - Frontmatter complete and consistent with body ✓
- Storage reservation threshold (>750 GiB) and subnet capacity (2 TiB) match
cycles-costs.md✓ - Query calls free, 1T = 1 XDR, cycles flow one-way — all accurate ✓
- Content brief fully covered: reverse gas model, XDR peg, CMC conversion, cost categories, predictability ✓
…es with cycles-costs reference - Replace 50% compute allocation example with 2% to match cycles-costs.md - Update canister creation cost from $0.65 to $0.68 (May 2025 XDR rate) - Update storage cost from $5.35 to $5.40/year (May 2025 XDR rate)
|
Feedback addressed:
|
Summary
Sync recommendation
Informed by
dfinity/portaldocs/building-apps/essentials/gas-cost.mdxanddocs/building-apps/getting-started/tokens-and-cycles.mdx— hand-written synthesis, concept-only framing per Diataxis.