Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api_server): report gas price based on open batch (#2868)
## 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