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

Update CoW AMM bounty query to handle uncatalogued solvers #67

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

harisang
Copy link
Contributor

@harisang harisang commented Nov 19, 2024

The current version of the query is removing solvers that do not have their name "registered" on Dune. This PR addresses this by replacing an "Uncatalogued" solver name with the corresponding solver address, so that the solver is still included int he final results

Query has already been updated as it was needed for today's payout.

https://dune.com/queries/4031724?cow_budget_n26d66=28650&start_time_d83555=2024-11-12+00%3A00%3A00&end_time_d83555=2024-11-19+00%3A00%3A00

@harisang harisang requested a review from fhenneke November 19, 2024 11:28
Copy link
Contributor

@fhenneke fhenneke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look reasonable.

We are moving into the realm of duplicate code with this, however.

Regarding the bugL: How can we make sure that our queries do not randomly remove results due to spells not getting updated? In general, we can try to avoid using solver names in anything but a final table for pretty printing. In the query at hand, though, this was not possible since using solver names is the most viable approach due to multiple chains (and multiple environments) being involved.

@harisang
Copy link
Contributor Author

Since this is a temporary query, i wouldn't really be worried too much about duplicated code. If we decide to proceed with vouching on multiple chains, then indeed we could only work with addresses and then these problems would be gone.

@harisang harisang merged commit c98c5bf into main Nov 19, 2024
1 check passed
@harisang harisang deleted the update_cow_amm_bounty_query branch November 19, 2024 14:51
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