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

Use new service fee query #433

Merged
merged 6 commits into from
Nov 21, 2024
Merged

Use new service fee query #433

merged 6 commits into from
Nov 21, 2024

Conversation

harisang
Copy link
Contributor

This PR updates the query id that is used for computing whether a service fee should be applied. Some minor simplifications in the code are needed.

This PR should be merged only after this dune-queries has been properly reviewed: cowprotocol/dune-queries#66

@harisang harisang requested a review from fhenneke November 19, 2024 08:47
@@ -436,13 +436,6 @@ def construct_payout_dataframe(
config.reward_config.reward_token_address.address
)

# 7. Missing service fee is treated as new solver
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was removed since the meaning of missing entries changed, right? Before it was an indication of missing data for new solvers. Now it could also just be a solver who is not in the COW bonding pool.

Not important for today's payouts, but it might be useful to reactivate a check restricted to missing service fee status for solvers in the COW bonding pool.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, indeed, the previous query was supposed to return an entry for every single active (vouched) solver, while this one only cares about CoW DAO bonding pool solvers. So if we want to bring back the check, we need to restrict it to the CoW DAO solvers

Copy link
Collaborator

@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.

Test run looks fine.

@fhenneke fhenneke merged commit 8f52179 into main Nov 21, 2024
5 checks passed
@fhenneke fhenneke deleted the update_service_fee_query branch November 21, 2024 11:09
@github-actions github-actions bot locked and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants