Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: add collateral cycles #213

Merged
merged 9 commits into from
May 23, 2024
Merged

feat!: add collateral cycles #213

merged 9 commits into from
May 23, 2024

Conversation

rvanasa
Copy link
Collaborator

@rvanasa rvanasa commented May 23, 2024

This PR introduces a fixed amount of "collateral cycles" which must be passed with each request as a buffer for potential future downstream increases in JSON-RPC service pricing.

The EVM RPC canister now requires an additional 0.00001 TC per node (0.00028 TC for the mainnet canister, 0.00013 for 13-node subnets) to be sent with each request. Currently, all of these cycles are refunded, but this may change in the future if necessary.

@rvanasa rvanasa marked this pull request as ready for review May 23, 2024 01:14
src/http.rs Outdated Show resolved Hide resolved
src/http.rs Show resolved Hide resolved
Copy link
Member

@gregorydemay gregorydemay left a comment

Choose a reason for hiding this comment

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

Thanks @rvanasa for this PR!

src/http.rs Show resolved Hide resolved
@rvanasa rvanasa merged commit aa5cc2a into main May 23, 2024
3 checks passed
@rvanasa rvanasa deleted the collateral-cycles branch May 23, 2024 09:09
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.

3 participants