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

Feature: Implement algorithm to determine the base gas price #1624

Open
xgreenx opened this issue Jan 24, 2024 · 0 comments
Open

Feature: Implement algorithm to determine the base gas price #1624

xgreenx opened this issue Jan 24, 2024 · 0 comments
Assignees
Labels
epic An epic is a high-level master issue for large pieces of work.

Comments

@xgreenx
Copy link
Collaborator

xgreenx commented Jan 24, 2024

We want to move to something similar to Ethereum's EIP-1559 base fees. The idea being that the price of gas will fluctuate from block to block depending on the demand on the network. We also need to take into account demand on the DA layer.

This is related as well to the estimate_gas_price api endpoint that needs some rules for how much the price is allowed to change from one block to the next. This work is captured in this issue.

This will require at least 3 inputs:

  • DA Layer posting costs
  • Shared sequencer payment
  • Fuel Node maintainance
@xgreenx xgreenx added the epic An epic is a high-level master issue for large pieces of work. label Feb 4, 2024
MitchTurner added a commit that referenced this issue Jun 11, 2024
Closes: #1956

This is a subtask of #1624

In this PR we add the generic service that will post an algorithm for
the providers to use. Not bothering with a _real_ algorithm, that will
be implemented later. For now, just show that the provider can get the
value generated by the service.

## Checklist
- [ ] Breaking changes are clearly marked as such in the PR description
and changelog
- [ ] New behavior is reflected in tests
- [ ] [The specification](https://github.com/FuelLabs/fuel-specs/)
matches the implemented behavior (link update PR if changes are needed)

### Before requesting review
- [x] I have reviewed the code myself
- [ ] I have created follow-up issues caused by this PR and linked them
here

### After merging, notify other teams

[Add or remove entries as needed]

- [ ] [Rust SDK](https://github.com/FuelLabs/fuels-rs/)
- [ ] [Swhttps://github.com/FuelLabs/fuel-core/issues/1956ay
compiler](https://github.com/FuelLabs/sway/)
- [ ] [Platform
documentation](https://github.com/FuelLabs/devrel-requests/issues/new?assignees=&labels=new+request&projects=&template=NEW-REQUEST.yml&title=%5BRequest%5D%3A+)
(for out-of-organization contributors, the person merging the PR will do
this)
- [ ] Someone else?

---------

Co-authored-by: Hannes Karppila <2204863+Dentosal@users.noreply.github.com>
Co-authored-by: Green Baneling <XgreenX9999@gmail.com>
@MitchTurner MitchTurner changed the title Implement algorithm to determine the base gas price Feature: Implement algorithm to determine the base gas price Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic An epic is a high-level master issue for large pieces of work.
Projects
None yet
Development

No branches or pull requests

2 participants