Skip to content

feat: Charge a base cost per canister#10292

Open
schneiderstefan wants to merge 1 commit into
masterfrom
stschnei/canister-base-cost
Open

feat: Charge a base cost per canister#10292
schneiderstefan wants to merge 1 commit into
masterfrom
stschnei/canister-base-cost

Conversation

@schneiderstefan
Copy link
Copy Markdown
Contributor

@schneiderstefan schneiderstefan commented May 22, 2026

This PR introduces a base cost charged to each canister, in addition to the existing cost for a canister's memory footprint. The cost is 10k cycles/s, which is roughly 0.026T cycles/month.

The motivation is to correctly account for the fact that canisters cause overhead, even if they have a small memory footprint.

This PR introduces a base cost charged to each canister, in addition to
the existing cost for a canister's memory footprint. The cost is 10k
cycles/s, which is roughly 0.026T cycles/month.
@schneiderstefan schneiderstefan requested a review from a team as a code owner May 22, 2026 14:10
@github-actions github-actions Bot added the feat label May 22, 2026
Comment on lines 475 to +478
// The initial balance is sufficient to only pay the reservation for installing code
// and the compute allocation during the freezing threshold.
let initial_balance = max_install_code_cost() + compute_allocation_cycles;
// and the freeze threshold (compute allocation + base fee).
let initial_balance =
max_install_code_cost() + compute_allocation_cycles + base_per_second_fee_cycles;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Idly wondering: This just occurred to me, after having gone through more than half the PR. Wouldn't it be simpler (at least for the tests not focused on charging) to set the base fee to zero?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants