Skip to content

Conversation

@avilagaston9
Copy link
Contributor

@avilagaston9 avilagaston9 commented Oct 1, 2025

Motivation

Introduce a new fee type: operator fee.

It behaves like the base fee (multiplied by the gas used) and is sent to the operator fee vault.
I suggest reading transaction_fees.md before reviewing the PR.

Closes #4694

@avilagaston9 avilagaston9 marked this pull request as ready for review October 16, 2025 03:54
}
}

pub fn claculate_gas_price_for_tx(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub fn claculate_gas_price_for_tx(
pub fn calculate_gas_price_for_tx(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 121f052

@avilagaston9 avilagaston9 moved this from In Progress to In Review in ethrex_l2 Oct 17, 2025
env.block_gas_limit = i64::MAX as u64; // disable block gas limit

adjust_disabled_base_fee(&mut env);
adjust_disabled_base_fee(&mut env, &mut vm_type);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of receive a mutable VMType, we could create a new one with the same config but the fee_operator in case gas_price is 0. That seems a bit cleaner

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this better? 8822d68

@avilagaston9 avilagaston9 added this pull request to the merge queue Oct 23, 2025
Merged via the queue into main with commit db38cc9 Oct 23, 2025
64 of 66 checks passed
@avilagaston9 avilagaston9 deleted the feat/l2/operator_fee branch October 23, 2025 18:15
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l2 Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L2 Rollup client

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

L2: Implement operator_fee

7 participants