Skip to content

Draft: pricing calculator#10518

Draft
eichhorl wants to merge 11 commits into
masterfrom
eichhorl/pricing-calculator
Draft

Draft: pricing calculator#10518
eichhorl wants to merge 11 commits into
masterfrom
eichhorl/pricing-calculator

Conversation

@eichhorl

Copy link
Copy Markdown
Contributor

No description provided.

eichhorl and others added 11 commits June 18, 2026 08:25
Add execution-environment unit tests for the pay-as-you-go base fee:

- execute_canister_http_request_insufficient_payment: pins the legacy
  rejection threshold to the full legacy fee (not the smaller base fee),
  guarding the "legacy charging flow unchanged" invariant now that the
  threshold branches on pricing version.
- execute_canister_http_request_non_replicated_refund_status: covers the
  non-replicated divisor (per_replica_allowance == refundable_cycles) and
  the non-replicated base-fee arm.
- execute_flexible_canister_http_request_explicit_replication: covers an
  explicit ReplicationCounts with a committee smaller than the subnet, so
  the per-replica allowance is split across the committee, plus the
  flexible base-fee arm with a non-default min_responses.
- Strengthen execute_flexible_canister_http_request_disabled to assert the
  specific "This API is not enabled on this subnet" reject, distinguishing
  the flag gate from other rejection reasons.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant