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

[NEP-591]: global contract usage cost description #595

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

stedfn
Copy link

@stedfn stedfn commented Feb 21, 2025

No description provided.

@stedfn stedfn requested a review from a team as a code owner February 21, 2025 12:09
@@ -147,7 +147,16 @@ Additionally we add action costs for the global contract related actions:
* we still want to be able to fit max allowed contracts size into single chunk space: `max_gas_burnt = 300_000_000_000_000`, `max_contract_size = 4_194_304`, so it should be at most `max_gas_burnt / max_contract_size = 71_525_573`
* we need to allow for some margin for other costs, so we can round it down to `70_000_000`

TODO(stedfn): cover costs for using global contracts
Referencing a global contract burns tokens for storage in accordance with `storage_amount_per_byte`. Additionally, the usage action incurs two costs, as follows:
Copy link
Contributor

Choose a reason for hiding this comment

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

it doesn't burn tokens, it locks it

@pugachAG pugachAG merged commit 4c3a980 into global-contracts Feb 21, 2025
2 checks passed
@pugachAG pugachAG deleted the global-contracts-usage-cost branch February 21, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Shipped 🚀
Status: NEW
Development

Successfully merging this pull request may close these issues.

2 participants