oso icon indicating copy to clipboard operation
oso copied to clipboard

Align Key Metrics with Optimism Dashboard

Open evanameyer1 opened this issue 8 months ago • 8 comments

What is it?

Goal Recreate Optimism's leadership dashboard metrics using our pyoso data, with drill-down by project or roll-up to incentive programs (e.g. Retro Funding 7).

Aim for ~5% accuracy vs. Optimism’s numbers.

I'll start with a quick pass through to see which metrics we already easily have, and create tutorials for how to query those. Then, I'll sync with @ccerv1 and we'll devise a plan for the options that might require some additional steps.

evanameyer1 avatar May 08 '25 16:05 evanameyer1

Relevant content:

  • Example hex dashboard: https://app.hex.tech/61bffa12-d60b-484c-80b9-14265e268538/app/46a5c60c-83e0-4aee-bc74-3f22ea62614a/latest?tab=dex
  • OP Labs screenshot: Image

evanameyer1 avatar May 08 '25 16:05 evanameyer1

Metrics List:

  • Active Addresses Number of unique addresses that send at least one transaction.

  • Actual OP Collective Contribution Revenue ETH paid from each chain (or RaaS) into the OP Collective’s multisigs.

  • App Fees All fees paid by users to use on-chain apps (DEX fees, lending interest, etc.), regardless of recipient.

  • App Revenue Subset of App Fees that actually accrues to developers, DAOs, companies or token holders (excludes stablecoin issuers).

  • Avg Block Time (Seconds) Average time, in seconds, between successive blocks.

  • Chain Governor Net Profit Net on-chain profit minus the OP Collective’s share; what the chain “retains.”

  • Concentration of Power Index A governance metric measuring how concentrated voting power is among delegates.

  • Cost of Attack Estimated cost for a hostile actor to seize control of governance.

  • DAO Voting-Bloc Entropy (oVBE) Measures diversity (entropy) of voting blocs in DAO votes.

  • DEX Trade Volume Total on-chain trading volume (USD) on decentralized exchanges (spot only).

  • Delegate Credibility Score Composite score evaluating a delegate’s reputation, activity, and on-chain performance.

  • Estimated Collective Revenue OP Collective yield = Net On-chain Profit + Actual Collective Contribution Revenue.

  • Ecosystem GitHub Accounts Unique GitHub users committing to any public repo in the chain’s ecosystem.

  • Filtered Contract Deployers Count of deployer addresses after filtering out system/infra contracts.

  • Gas Fees Paid (Chain Revenue) Total gas fees users pay on the chain (does not subtract any costs).

  • Gas Per Second Theoretical max throughput: gasLimit/eip1559Elasticity per block, normalized to per-second.

  • Gas Target Per-block target gas = gasLimit / eip1559Elasticity (then ÷ block time for per second).

  • Gas Used Per Second Sum of actual gas consumed onchain per second (EVM-equivalent only).

  • L1 Data Costs Gas costs for publishing calldata blobs and batch transactions to L1.

  • L1 State Proposal Costs Gas costs for submitting state roots, dispute games, and other rollup proofs to L1.

  • Median Transaction Fee (USD) The median gas spend (in USD) per transaction over the period.

  • Mobile Wallet Active Users Monthly active users on the chain’s official iOS/Android wallets.

  • Net On-chain Profit Chain revenue (gas fees) minus Total L1 Costs.

  • Node-level Sequencer Revenue (Marketing term) fees earned by sequencers; exact definition varies in docs.

  • Real Economic Value (REV) Total value users pay for transaction execution (gas + tips + premiums).

  • Revenue Generating Deployers (RevDevs) Number of smart-contract deployers whose contracts have generated non-zero revenue.

  • Social Media Mindshare Chain’s share of voice across social, forums, news, etc., per Kaito’s model.

  • Stablecoin Transfers Aggregate # and USD volume of stablecoin token transfers.

  • Token Holder Revenue Subset of App Revenue specifically paid out to token holders.

  • Transactions Count of “user-initiated” transactions (excludes system or free txns).

  • Total L1 Costs Sum of L1 Data Costs + L1 State Proposal Costs.

  • Unique Apps Number of distinct apps (by project) listed on DefiLlama metrics.

  • Votable OP Supply Amount of OP tokens delegated and eligible for governance votes.

  • Voting Influence & Concentration Analysis (VICA) Score Composite metric tracking how much voting sway each actor holds.

evanameyer1 avatar May 09 '25 01:05 evanameyer1

I got the easy ones out of the way, currently categorizing the rest and seeing which others we can create: https://colab.research.google.com/drive/1ky_00L6ODS1jaMY1kLTmf8DIbLwSLQ9G?usp=sharing

evanameyer1 avatar May 09 '25 04:05 evanameyer1

Update - Thomas reached out and wants to talk about S7 measurement and has prepared a doc of metrics they care about: document.

I'll walk through the metrics and determine which ones we need to implement in order to satisfy all requirements, and prepare to have an idea on how to do it before the call. (Carl mentioned net TVL inflows is one that's missing).

evanameyer1 avatar May 19 '25 16:05 evanameyer1

Latest version @ccerv1 : https://colab.research.google.com/drive/157fp_qJC65wN88ASoJC7HUSIEzbw8_Ij?usp=sharing

evanameyer1 avatar May 19 '25 21:05 evanameyer1

Doc of thoughts: https://docs.google.com/document/d/1fwnI-xb3u215tXsHMCGNwZbpkcqbLwbo5g3T-jmigEE/edit?usp=sharing

evanameyer1 avatar May 19 '25 22:05 evanameyer1

We need to make two new API calls:

  • For Trading Volumes, we need one like this
  • For LP Fees, we need one like this

We will also need to track Total OP Deployed by looking at the from_funder_address and to_project_address events

ccerv1 avatar May 20 '25 11:05 ccerv1

Final notebook (w/ side-by-side futarchy & gc comparisons + final table): https://colab.research.google.com/drive/1f17bm68nDnFTmrcDvL3384EaKM7tRjq1?usp=sharing

evanameyer1 avatar Jun 11 '25 00:06 evanameyer1