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

fix: update token fetcher sampling comparison logic to ignore empty/0 fees #753

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

xrsv
Copy link
Contributor

@xrsv xrsv commented Jun 18, 2024

Update on the sampling comparison logic between OnchainFeeFetcher and GraphQLFeeFetcher to ignore entries that are empty or have 0 fees and pollute comparison logs.

example
TrafficSwitcherITokenFeeFetcher compareResultsForFetchFees: Different fee for address 0x4da27a545c0c5b758a6ba100e3a049001de870f5: in control: {"buyFeeBps":{"type":"BigNumber","hex":"0x00"},"sellFeeBps":{"type":"BigNumber","hex":"0x00"}} and treatment: {}

Copy link

graphite-app bot commented Jun 18, 2024

Graphite Automations

"Request reviewers once CI passes on routing-api repo" took an action on this PR • (06/18/24)

6 reviewers were added and 1 assignee was added to this PR based on 's automation.

@xrsv xrsv merged commit d3fc8a2 into main Jun 18, 2024
5 checks passed
@xrsv xrsv deleted the xrsv/token-fetcher-sample-compare-fix branch June 18, 2024 22:26
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

Successfully merging this pull request may close these issues.

2 participants