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

Update GAS_OVERHEAD constant in Paycall and Quotecall #197

Merged
merged 1 commit into from
May 14, 2024

Conversation

kevincheng96
Copy link
Collaborator

@kevincheng96 kevincheng96 commented May 9, 2024

The current GAS_OVERHEAD slightly overestimates the amount. After running some gas tracing experiments in foundry, the rough range of gas used outside of Paycall/Quotecall was roughly 63-65K gas. These were tested using Quark wallets compiled with --via-ir. The gas estimation tests also assumed that scriptSources are not set and that no scripts are deployed by CodeJar during the QuarkOperation. The actual cost could be higher if scriptSources were set and a script was deployed.

@kevincheng96 kevincheng96 requested review from hayesgm and cwang25 May 9, 2024 18:50
@kevincheng96 kevincheng96 merged commit e1da89d into main May 14, 2024
4 checks passed
@kevincheng96 kevincheng96 deleted the kevin/modify-fixed-gas branch May 14, 2024 17:41
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