Skip to content

Commit

Permalink
feat(api_server): report gas price based on open batch (#2868)
Browse files Browse the repository at this point in the history
## What ❔

`api_server` should report gas price based on the currently open L1
batch as opposed to the latest sealed L2 block.

Note: adding `BatchFeeInput` to L1 batch models did not end up being
necessary but I think it still makes sense.

## Why ❔

To avoid gas fluctuation issues on chains with low amount of traffic

## Checklist

<!-- Check your PR fulfills the following items. -->
<!-- For draft PRs check the boxes as you complete them. -->

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [x] Tests for the changes have been added / updated.
- [x] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
  • Loading branch information
itegulov authored Jan 13, 2025
1 parent 361243f commit f30aca0
Show file tree
Hide file tree
Showing 25 changed files with 627 additions and 104 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f30aca0

Please sign in to comment.