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

feat: metrics for infra fee, newtork fee, batch poster fee, and l1 rewards #2674

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

renlulu
Copy link
Contributor

@renlulu renlulu commented Sep 13, 2024

So right now we have user paying single amount of gas fee (compatible with EVM), but internally it is split into several parts and being distributed to:

  1. infra fee receiver (for orbit base fee)
  2. network fee receiver (for orbit surplus fee)
  3. batchposter fee collector (for parent chain base fee)
  4. l1 rewards recipient (for parent surplus fee)

So we can have metrics on these fee types in order to get a (roughly)clear picture/graph on the distribution:

  1. infra fee receiver: infraFeeDistributionCounter and infraFeeDistribution
  2. network fee receiver: networkFeeDistributionCounter and networkFeeDistribution
  3. batch poster fee collector: l1BaseFeeDueDistributionCounter and l1BaseFeeDueDistribution (can be set per batch poster)
  4. 11 rewards recipient: l1RewardsDistributionCounter and l1RewardsDistribution

The details name are:

  1. arbos/infra_fee/counter and arbos/infra_fee/distribution
  2. arbos/network_fee/counter and arbos/network_fee/distribution
  3. arbos/batchposter_fee_collector/due_counter and arbos/batchposter_fee_collector/due_distribution
  4. arbos/l1_rewards_recipient/rewards_counter and arbos/l1_rewards_recipient/rewards_distribution

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Sep 13, 2024
@renlulu renlulu changed the title feat: metrics for infra fee, newtork fee, batch poster reards/due feat: metrics for infra fee, newtork fee, batch poster fee, and l1 rewards Sep 13, 2024
@renlulu renlulu force-pushed the feat/metrics-fee-distribution branch from a67926c to c4bfcec Compare September 13, 2024 09:51
@renlulu renlulu force-pushed the feat/metrics-fee-distribution branch from c4bfcec to 889f584 Compare September 14, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant