Because of a regenesis event on Optimism, many of the liquidity pools have to be manually instantiated at the start of the program. This is because all of the liquidity pool contracts that were created before regenesis do not have a corresponding event from the factory contract upon indexing the post-regenesis chain. The state of these contracts were maintained, however, we are not able to recover volume, fee, swap, deposit, and withdraw data from before regenesis.
More Info: https://blog.synthetix.io/optimism-mainnet-upgrade-scheduled-downtime-and-regenesis/
Sum across all Pools:
Liquidity Pool TVL
Sum across all Pools:
(Pool Swap Trading Volume * Pool Fee Tier)
Note that Pool Fee Tiers vary by pool and more tiers could be added by Governance (04/07/22)
Portion of the Total Revenue allocated to the Protocol
Sum across all Pools:
(Pool Swap Trading Volume * Pool Fee Tier * Protocol Fee)
Note that the Protocol Fee for Uniswap is currently 0% but could be changed via Governance (04/07/22)
https://uniswap.org/blog/uniswap-v3
Portion of the Total Revenue allocated to the Supply-Side
Sum across all Pools
(Pool Swap Trading Volume * Pool Fee Tier * (1 - Protocol Fee))
Note that Pool Fee Tiers vary by pool and more tiers could be added by Governance (04/07/22)
Count of Unique Addresses which have interacted with the protocol via any transaction
Swaps
Deposits
Withdraws
Does not apply to Uniswap V3
Does not apply to Uniswap V3
Other existing subgraph https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v3