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

Re-Build Recurring RPC Calls for Chain Revenue #1158

Open
MSilb7 opened this issue Dec 12, 2024 · 0 comments
Open

Re-Build Recurring RPC Calls for Chain Revenue #1158

MSilb7 opened this issue Dec 12, 2024 · 0 comments

Comments

@MSilb7
Copy link
Member

MSilb7 commented Dec 12, 2024

For any OP Stack chain where we have a valid mainnet RPC, we can call totalProcessed() and get the ETH balance for each fee vault address on a regular cadence in order to get "all-time fees paid."

Then the deltas between each pull imply the revenue earned in that period (i.e. if we return 10 ETH yesterday, and 12 ETH today, we can calculate 10-12 = 2 ETH earned today.

See:

Notes:

  • There is a dependency on where we pull chain metadata & RPCs from Re-Build Chain Metadata Tables #890
  • Do we only pull chains in the Superchain, or all identified OP Stack chains?

There may be consistent "RPC Call" utilities we can use across other jobs, such as #934 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant