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

add protocol fee by order class query #97

Merged
merged 3 commits into from
Dec 20, 2024

Conversation

harisang
Copy link
Contributor

This PR adds query https://dune.com/queries/3703312
under version control.

Some minimal changes and clean-up have been made

Copy link
Contributor

@fleupold fleupold left a comment

Choose a reason for hiding this comment

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

Some low hanging 🧹 before merging please.

with
protocol_fees_collected as (
select --noqa: ST06
order_uid, --noqa: RF03
Copy link
Contributor

Choose a reason for hiding this comment

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

it honestly sounds weird to me that we need a noqa comment on every line here. What exactly is the problem? Can this be resolved by slightly renaming of the select clauses?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe the complaint is due to the dictionary structure of the data part of cowswap.raw_order_rewards. This will go away with a follow-up PR that will make the query use the new raw order data table.

@harisang harisang merged commit 4b976fe into main Dec 20, 2024
2 checks passed
@harisang harisang deleted the add_revenue_per_order_class_query branch December 20, 2024 10:50
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