Skip to content

Commit 3974dfc

Browse files
authored
docs(cycles): restructure page for clarity and remove repetition (#146)
## Summary Five changes to remove redundancy and improve heading accuracy: - **Intro**: drop inaccurate "a unit of compute" appositive; fix two em-dashes - **Drop "What are cycles?" heading**: the intro already defines cycles; replace the section's two redundant opening sentences with a single lead-in "Cycles cover four resource categories:" and keep the bullet list in place - **Rename "What canisters pay for" → "Pricing"**: the categories were just listed above; this section covers rates and cost mechanics - **Developer responsibility**: remove opening sentence "Canisters pay for their own resources, which comes with ongoing obligations:" — echoes the intro verbatim; the heading is self-explanatory - **Cost predictability**: remove "Stable unit economics" bullet — restates the XDR peg already explained in the subsection above ## Sync recommendation hand-written
1 parent 0e43eee commit 3974dfc

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

docs/concepts/cycles.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ sidebar:
55
order: 4
66
---
77

8-
Every canister runs on real hardware: nodes operated by independent node providers distributed across the world. Unlike a traditional cloud, there is no single company to bill: no AWS account, no credit card, no monthly invoice. Instead, the network handles payment at the protocol level. **Canisters pay for their own compute, storage, and bandwidth using cycles**, a unit of compute loaded into a canister in advance. The network deducts cycles automatically as the canister runs. Anyone can top up a canister: the developer, another canister, a user, or an automated service. Users interact with apps for free, the same way they use any web service.
8+
Every canister runs on real hardware: nodes operated by independent node providers distributed across the world. Unlike a traditional cloud, there is no single company to bill: no AWS account, no credit card, no monthly invoice. Instead, the network handles payment at the protocol level. **Canisters pay for their own compute, storage, and bandwidth using cycles.** The network deducts cycles automatically as the canister runs. Anyone can top up a canister: the developer, another canister, a user, or an automated service. Users interact with apps for free, the same way they use any web service.
99

10-
## What are cycles?
11-
12-
Cycles are the unit of payment for resources on ICP. Every canister operation that consumes resources burns cycles from the canister's balance:
10+
Cycles cover four resource categories:
1311

1412
- **Compute**: executing instructions (update calls, timers, heartbeats)
1513
- **Storage**: Wasm heap memory and stable memory, charged per byte per second
@@ -18,7 +16,7 @@ Cycles are the unit of payment for resources on ICP. Every canister operation th
1816

1917
Query calls are free: they run on a single node, do not go through consensus, and are not charged.
2018

21-
## ICP tokens and cycles
19+
## Acquiring cycles
2220

2321
Cycles are obtained by converting ICP tokens. The conversion happens through the **Cycles Minting Canister (CMC)** (`rkp4c-7iaaa-aaaaa-aaaca-cai`), a system canister that accepts ICP and mints the equivalent value in cycles at the current XDR exchange rate.
2422

@@ -28,7 +26,7 @@ Once minted, cycles are held by principals via the **cycles ledger** (`um5iw-rqa
2826

2927
Unlike ICP tokens, whose price fluctuates with markets, cycles are pegged to the [Special Drawing Right (XDR)](https://www.imf.org/external/np/fin/data/rms_sdrv.aspx): a basket of currencies maintained by the IMF. **1 trillion (T) cycles = 1 XDR** (approximately $1.30–$1.40 USD). This peg makes infrastructure costs predictable for developers regardless of ICP token price movements.
3028

31-
## What canisters pay for
29+
## Pricing
3230

3331
### Compute
3432

@@ -63,8 +61,6 @@ Every canister is replicated across all nodes on its subnet. Costs scale with su
6361

6462
## Developer responsibility
6563

66-
Canisters pay for their own resources, which comes with ongoing obligations:
67-
6864
**Topping up**: canisters burn cycles continuously for storage and on every update call. Developers must monitor balances and keep canisters funded. A canister that runs out of cycles freezes immediately and stops responding to all calls.
6965

7066
**Freezing threshold**: each canister has a configurable freezing threshold (default: 30 days of idle burn). If the cycle balance falls below this threshold, the canister is frozen before it can be deleted, giving developers time to top up. Increase this threshold for production canisters as a safety buffer.
@@ -79,7 +75,6 @@ The XDR peg and flat per-resource pricing make ICP costs predictable:
7975

8076
- **No surge pricing**: cycle prices are set by the [NNS](../concepts/governance.md) (ICP's on-chain governance system) and change infrequently. There are no congestion fees.
8177
- **No per-transaction fees for users**: apps absorb all costs, like SaaS businesses absorb server bills.
82-
- **Stable unit economics**: because cycles are pegged to XDR (not ICP price), infrastructure costs remain consistent even when ICP token price swings.
8378

8479
The tradeoff is that developers must forecast and fund usage upfront rather than letting users pay as they go.
8580

0 commit comments

Comments
 (0)