-
Notifications
You must be signed in to change notification settings - Fork 284
feat: update L2 base fee formula #1169
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
Conversation
WalkthroughThe changes update the calculation parameters for the L2 base fee in the consensus logic, specifically lowering the proving and verification fee contributions. Corresponding test cases are updated to reflect the new fee calculation logic. Additionally, two transaction hash expectations in state processor error tests are updated, the GitHub Actions Semgrep workflow runner environment is upgraded from Ubuntu 20.04 to 22.04, and the patch version number is incremented from 38 to 39 in the versioning parameters. No public function signatures or exported entity interfaces are changed. Changes
Sequence Diagram(s)sequenceDiagram
participant ParentL1 as Parent L1 Base Fee
participant CalcBaseFee as CalcBaseFee Function
participant Output as L2 Base Fee
ParentL1->>CalcBaseFee: Provide L1 base fee
CalcBaseFee->>CalcBaseFee: Apply new provingFee and verificationFee constants
CalcBaseFee->>CalcBaseFee: Add sequencer fee, cap at MaximumL2BaseFee
CalcBaseFee-->>Output: Return computed L2 base fee
Suggested reviewers
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@yiweichi Can you also adjust DA fee related parameters? I don't see it being updated. Also Do you mind adjusting bundle timeout to 11 hrs at the same time? See https://scrollco.slack.com/archives/C06UP3R13MW/p1744930917421349?thread_ts=1744417193.866009&cid=C06UP3R13MW |
To update DA fee will need Xi to interact with contract, Colin already reached out to him. |
1. Purpose or design rationale of this PR
Update L2 base fee according to new cost estimates.
2. PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
3. Deployment tag versioning
Has the version in
params/version.gobeen updated?4. Breaking change label
Does this PR have the
breaking-changelabel?Summary by CodeRabbit
Bug Fixes
Chores