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

fix: refine cycles cost calculation #143

Merged
merged 7 commits into from
Jan 23, 2024
Merged

Conversation

rvanasa
Copy link
Collaborator

@rvanasa rvanasa commented Jan 22, 2024

The current cycles cost calculation slightly overcharges for request bytes (10400 instead of 5200), so this PR separates the costs of request and response bytes.

Comment on lines +17 to +18
(EvmRpcCanister, "default", 13, 61_898_400),
(EvmRpcFidicuaryCanister, "fiduciary", 28, 133_319_630),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should document somewhere how these numbers are derived.
Maybe such details could be discussed on a wiki page (which the EVM RPC canister should definitely get). What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Definitely. The calculation for these numbers is explained in the design document, which we could transfer to a wiki page.

@rvanasa rvanasa merged commit 0b5c52d into main Jan 23, 2024
3 checks passed
@rvanasa rvanasa deleted the refine-cycles-cost-calculation branch January 23, 2024 18:53
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.

2 participants