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

[tokenomics] Estimator for non-linear operations #4333

Closed
oxade opened this issue Aug 26, 2022 · 1 comment
Closed

[tokenomics] Estimator for non-linear operations #4333

oxade opened this issue Aug 26, 2022 · 1 comment
Assignees

Comments

@oxade
Copy link
Contributor

oxade commented Aug 26, 2022

No linear operations, particularly Move calls are not easy to estimate because they require
This can be attempted in multiple ways:

  1. Flat cost: we return a fixed number regardless of the function being called
  2. Execution-based cost: here we actually run the function and observe the gas used

We have chosen to go with a variant of version 1 for simplicity for now

@oxade
Copy link
Contributor Author

oxade commented Nov 5, 2022

Will use #4967

@oxade oxade closed this as completed Nov 5, 2022
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

No branches or pull requests

1 participant