Skip to content

Charge CIP-88 quote budget contributions in margin per trade - #406

Closed
fhenneke wants to merge 1 commit into
mainfrom
claude/margin-per-trade-cip88
Closed

fhenneke wants to merge 1 commit into
mainfrom
claude/margin-per-trade-cip88

Conversation

@fhenneke

@fhenneke fhenneke commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

From the accounting period starting 2026-10-06, quote rewards are paid from a weekly budget of 10% of protocol revenue (CIP-88) instead of a flat reward per quoted order. Split out of #401, which covers the accounting queries.

  • margin per trade (6371781): end the flat quote reward caps at 2026-10-06, and charge later trades their quote_budget_contribution_native from dune.cowprotocol.fct_rewards as their quote reward. A missing value counts as 0, like the other reward parts of the query.

🤖 Generated with Claude Code

From 2026-10-06, quote rewards are paid from a weekly budget of 10% of
protocol revenue (CIP-88) instead of a flat reward per quoted order.
End the flat quote reward caps at 2026-10-06 and charge later trades
their quote_budget_contribution_native from dune.cowprotocol.fct_rewards
(added in cowprotocol/cow-dagster#1110).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fhenneke
fhenneke marked this pull request as ready for review October 14, 2026 14:47
@fhenneke
fhenneke requested a review from ma7ia5 October 14, 2026 14:49

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This query is outdated and replaced by dune dbt models. Better to delete it

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