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

Remove errored values from fee calculation #10353

Merged
merged 1 commit into from
May 30, 2023
Merged

Conversation

wackerow
Copy link
Member

Description

  • Filters out L2 API results that come with an error—avoids using these values as "$0 fees" in the calculation

Note, this calculation still has issues with equal weighting of the networks (as opposed to weighting by TVL or tx volume), and the API results are only giving values for a few of the less utilized networks, which leads to a fairly misleading and inaccurate result here.

This PR simply patches the fact that null values were being included as "$0 fees", but does not address the other issues. As an alternative to this patch, I would also not be against removal of this metric until a more suitable API is investigated.

Related Issue

From Discord

@gatsby-cloud
Copy link

gatsby-cloud bot commented May 30, 2023

✅ ethereum-org-website-dev deploy preview ready

@corwintines corwintines merged commit a4b9d0d into dev May 30, 2023
@corwintines corwintines deleted the patch-l2-fee-calc branch May 30, 2023 20:33
This was referenced May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content 🖋️ This involves copy additions or edits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants